< prev index next >

src/java.base/share/classes/java/lang/System.java

Print this page

        

@@ -307,11 +307,11 @@
             // trying to initialize the policy (which usually involves
             // accessing some security and/or system properties, which in turn
             // calls the installed security manager's checkPermission method
             // which will loop infinitely if there is a non-system class
             // (in this case: the new security manager class) on the stack).
-            AccessController.doPrivileged(new PrivilegedAction<Object>() {
+            AccessController.doPrivileged(new PrivilegedAction<>() {
                 public Object run() {
                     s.getClass().getProtectionDomain().implies
                         (SecurityConstants.ALL_PERMISSION);
                     return null;
                 }
< prev index next >