--- old/src/java.base/share/classes/java/net/Socket.java 2015-04-22 17:43:53.695422798 -0700 +++ new/src/java.base/share/classes/java/net/Socket.java 2015-04-22 17:43:53.519422794 -0700 @@ -470,7 +470,7 @@ // getDeclaredMethod, therefore we need permission to access the member oldImpl = AccessController.doPrivileged - (new PrivilegedAction() { + (new PrivilegedAction<>() { public Boolean run() { Class clazz = impl.getClass(); while (true) { @@ -911,7 +911,7 @@ InputStream is = null; try { is = AccessController.doPrivileged( - new PrivilegedExceptionAction() { + new PrivilegedExceptionAction<>() { public InputStream run() throws IOException { return impl.getInputStream(); } @@ -951,7 +951,7 @@ OutputStream os = null; try { os = AccessController.doPrivileged( - new PrivilegedExceptionAction() { + new PrivilegedExceptionAction<>() { public OutputStream run() throws IOException { return impl.getOutputStream(); }