diff -r 74f2ee2b62ba -r 56bc97d69d93 jdk/src/share/classes/java/io/ObjectInputStream.java --- a/jdk/src/share/classes/java/io/ObjectInputStream.java Sat Dec 18 09:10:49 2010 -0800 +++ b/jdk/src/share/classes/java/io/ObjectInputStream.java Mon Dec 20 13:47:04 2010 -0800 @@ -213,7 +213,7 @@ /** table mapping primitive type names to corresponding class objects */ private static final HashMap> primClasses - = new HashMap>(8, 1.0F); + = new HashMap<>(8, 1.0F); static { primClasses.put("boolean", boolean.class); primClasses.put("byte", byte.class); @@ -229,11 +229,11 @@ private static class Caches { /** cache of subclass security audit results */ static final ConcurrentMap subclassAudits = - new ConcurrentHashMap(); + new ConcurrentHashMap<>(); /** queue for WeakReferences to audited subclasses */ static final ReferenceQueue> subclassAuditsQueue = - new ReferenceQueue>(); + new ReferenceQueue<>(); } /** filter stream for handling block data conversion */