--- old/src/java.base/share/classes/java/lang/ClassLoader.java 2015-04-22 17:43:42.083422529 -0700 +++ new/src/java.base/share/classes/java/lang/ClassLoader.java 2015-04-22 17:43:41.915422525 -0700 @@ -496,7 +496,7 @@ final String name = cls.getName(); final int i = name.lastIndexOf('.'); if (i != -1) { - AccessController.doPrivileged(new PrivilegedAction() { + AccessController.doPrivileged(new PrivilegedAction<>() { public Void run() { sm.checkPackageAccess(name.substring(0, i)); return null; @@ -1265,7 +1265,7 @@ { final Enumeration e = getBootstrapClassPath().getResources(name); - return new Enumeration () { + return new Enumeration<> () { public URL nextElement() { return e.nextElement().getURL(); } @@ -1867,7 +1867,7 @@ boolean isBuiltin = (name != null); if (!isBuiltin) { name = AccessController.doPrivileged( - new PrivilegedAction() { + new PrivilegedAction<>() { public String run() { try { return file.exists() ? file.getCanonicalPath() : null;