diff -r 74f2ee2b62ba -r 56bc97d69d93 jdk/src/share/classes/java/util/EnumSet.java --- 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(elementType, universe); + return new RegularEnumSet<>(elementType, universe); else - return new JumboEnumSet(elementType, universe); + return new JumboEnumSet<>(elementType, universe); } /** @@ -430,7 +430,7 @@ } Object writeReplace() { - return new SerializationProxy(this); + return new SerializationProxy<>(this); } // readObject method for the serialization proxy pattern