--- old/src/java.base/share/classes/sun/reflect/annotation/AnnotationType.java 2015-04-22 17:44:15.959423313 -0700 +++ new/src/java.base/share/classes/sun/reflect/annotation/AnnotationType.java 2015-04-22 17:44:15.787423309 -0700 @@ -106,16 +106,16 @@ throw new IllegalArgumentException("Not an annotation type"); Method[] methods = - AccessController.doPrivileged(new PrivilegedAction() { + AccessController.doPrivileged(new PrivilegedAction<>() { public Method[] run() { // Initialize memberTypes and defaultValues return annotationClass.getDeclaredMethods(); } }); - memberTypes = new HashMap>(methods.length+1, 1.0f); - memberDefaults = new HashMap(0); - members = new HashMap(methods.length+1, 1.0f); + memberTypes = new HashMap<>(methods.length+1, 1.0f); + memberDefaults = new HashMap<>(0); + members = new HashMap<>(methods.length+1, 1.0f); for (Method method : methods) { if (method.getParameterTypes().length != 0)