diff -r 1fe358ea75ff -r 5f915a0c9615 src/share/classes/com/sun/tools/javac/util/List.java
--- a/src/share/classes/com/sun/tools/javac/util/List.java Mon Sep 23 10:10:07 2013 +0200
+++ b/src/share/classes/com/sun/tools/javac/util/List.java Mon Sep 23 10:42:38 2013 +0200
@@ -97,7 +97,7 @@
}
public List intersect(List that) {
- ListBuffer buf = ListBuffer.lb();
+ ListBuffer buf = new ListBuffer<>();
for (A el : this) {
if (that.contains(el)) {
buf.append(el);
@@ -107,7 +107,7 @@
}
public List diff(List that) {
- ListBuffer buf = ListBuffer.lb();
+ ListBuffer buf = new ListBuffer<>();
for (A el : this) {
if (!that.contains(el)) {
buf.append(el);
@@ -120,7 +120,7 @@
* Create a new list from the first {@code n} elements of this list
*/
public List take(int n) {
- ListBuffer buf = ListBuffer.lb();
+ ListBuffer buf = new ListBuffer<>();
int count = 0;
for (A el : this) {
if (count++ == n) break;
@@ -167,7 +167,7 @@
}
public static List from(Iterable extends A> coll) {
- ListBuffer xs = ListBuffer.lb();
+ ListBuffer xs = new ListBuffer<>();
for (A a : coll) {
xs.append(a);
}