--- 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<String, Class<?>> primClasses
- = new HashMap<String, Class<?>>(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<WeakClassKey,Boolean> subclassAudits =
- new ConcurrentHashMap<WeakClassKey,Boolean>();
+ new ConcurrentHashMap<>();
/** queue for WeakReferences to audited subclasses */
static final ReferenceQueue<Class<?>> subclassAuditsQueue =
- new ReferenceQueue<Class<?>>();
+ new ReferenceQueue<>();
}
/** filter stream for handling block data conversion */