--- a/jdk/src/share/classes/java/util/EnumSet.java Sat Dec 18 09:10:49 2010 -0800
+++ b/jdk/src/share/classes/java/util/EnumSet.java Mon Dec 20 13:47:04 2010 -0800
@@ -110,9 +110,9 @@
throw new ClassCastException(elementType + " not an enum");
if (universe.length <= 64)
- return new RegularEnumSet<E>(elementType, universe);
+ return new RegularEnumSet<>(elementType, universe);
else
- return new JumboEnumSet<E>(elementType, universe);
+ return new JumboEnumSet<>(elementType, universe);
}
/**
@@ -430,7 +430,7 @@
}
Object writeReplace() {
- return new SerializationProxy<E>(this);
+ return new SerializationProxy<>(this);
}
// readObject method for the serialization proxy pattern