< prev index next >

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

Print this page

        

@@ -1453,11 +1453,11 @@
              * Do we need to update our property array?
              */
             if (!packageAccessValid) {
                 String tmpPropertyStr =
                     AccessController.doPrivileged(
-                        new PrivilegedAction<String>() {
+                        new PrivilegedAction<>() {
                             public String run() {
                                 return java.security.Security.getProperty(
                                     "package.access");
                             }
                         }

@@ -1522,11 +1522,11 @@
              * Do we need to update our property array?
              */
             if (!packageDefinitionValid) {
                 String tmpPropertyStr =
                     AccessController.doPrivileged(
-                        new PrivilegedAction<String>() {
+                        new PrivilegedAction<>() {
                             public String run() {
                                 return java.security.Security.getProperty(
                                     "package.definition");
                             }
                         }
< prev index next >