--- old/src/java.base/share/classes/java/net/NetworkInterface.java 2015-04-22 17:43:53.255422787 -0700 +++ new/src/java.base/share/classes/java/net/NetworkInterface.java 2015-04-22 17:43:53.083422783 -0700 @@ -54,7 +54,7 @@ static { AccessController.doPrivileged( - new java.security.PrivilegedAction() { + new java.security.PrivilegedAction<>() { public Void run() { System.loadLibrary("net"); return null; @@ -167,7 +167,7 @@ * @since 1.6 */ public java.util.List getInterfaceAddresses() { - java.util.List lst = new java.util.ArrayList(1); + java.util.List lst = new java.util.ArrayList<>(1); SecurityManager sec = System.getSecurityManager(); for (int j=0; j() { + return new Enumeration<>() { private int i = 0; public NetworkInterface nextElement() { if (netifs != null && i < netifs.length) {