1.1 --- a/src/share/classes/com/sun/tools/javac/comp/Resolve.java Mon Sep 23 10:10:07 2013 +0200 1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/Resolve.java Mon Sep 23 10:42:38 2013 +0200 1.3 @@ -213,7 +213,7 @@ 1.4 1.5 int pos = 0; 1.6 int mostSpecificPos = -1; 1.7 - ListBuffer<JCDiagnostic> subDiags = ListBuffer.lb(); 1.8 + ListBuffer<JCDiagnostic> subDiags = new ListBuffer<>(); 1.9 for (Candidate c : currentResolutionContext.candidates) { 1.10 if (currentResolutionContext.step != c.step || 1.11 (c.isApplicable() && !verboseResolutionMode.contains(VerboseResolutionMode.APPLICABLE)) || 1.12 @@ -783,7 +783,7 @@ 1.13 }; 1.14 1.15 List<Type> dummyArgs(int length) { 1.16 - ListBuffer<Type> buf = ListBuffer.lb(); 1.17 + ListBuffer<Type> buf = new ListBuffer<>(); 1.18 for (int i = 0 ; i < length ; i++) { 1.19 buf.append(Type.noType); 1.20 } 1.21 @@ -3173,7 +3173,7 @@ 1.22 } 1.23 //where 1.24 private List<Type> pruneInterfaces(Type t) { 1.25 - ListBuffer<Type> result = ListBuffer.lb(); 1.26 + ListBuffer<Type> result = new ListBuffer<>(); 1.27 for (Type t1 : types.interfaces(t)) { 1.28 boolean shouldAdd = true; 1.29 for (Type t2 : types.interfaces(t)) { 1.30 @@ -3286,7 +3286,7 @@ 1.31 if (argtypes == null || argtypes.isEmpty()) { 1.32 return noArgs; 1.33 } else { 1.34 - ListBuffer<Object> diagArgs = ListBuffer.lb(); 1.35 + ListBuffer<Object> diagArgs = new ListBuffer<>(); 1.36 for (Type t : argtypes) { 1.37 if (t.hasTag(DEFERRED)) { 1.38 diagArgs.append(((DeferredAttr.DeferredType)t).tree);