jdk/src/java.base/share/classes/java/net/DatagramSocket.java
changeset 29986 97167d851fc4
parent 28852 a581c7868768
child 30963 88469d06e03f
--- a/jdk/src/java.base/share/classes/java/net/DatagramSocket.java	Thu Apr 23 18:01:01 2015 +0800
+++ b/jdk/src/java.base/share/classes/java/net/DatagramSocket.java	Thu Apr 23 09:32:35 2015 -0700
@@ -308,7 +308,7 @@
         // getDeclaredMethod, therefore we need permission to access the member
         try {
             AccessController.doPrivileged(
-                new PrivilegedExceptionAction<Void>() {
+                new PrivilegedExceptionAction<>() {
                     public Void run() throws NoSuchMethodException {
                         Class<?>[] cl = new Class<?>[1];
                         cl[0] = DatagramPacket.class;