< prev index next >

src/java.base/share/classes/java/io/FilePermission.java

Print this page

        

@@ -199,11 +199,11 @@
             cpath = "";
             return;
         }
 
         // store only the canonical cpath if possible
-        cpath = AccessController.doPrivileged(new PrivilegedAction<String>() {
+        cpath = AccessController.doPrivileged(new PrivilegedAction<>() {
             public String run() {
                 try {
                     String path = cpath;
                     if (cpath.endsWith("*")) {
                         // call getCanonicalPath with a path with wildcard character
< prev index next >