< prev index next >

src/java.base/share/classes/java/lang/invoke/ProxyClassesDumper.java

Print this page

        

@@ -28,11 +28,10 @@
 
 import java.io.FilePermission;
 import java.nio.file.Files;
 import java.nio.file.InvalidPathException;
 import java.nio.file.Path;
-import java.nio.file.Paths;
 import java.security.AccessController;
 import java.security.PrivilegedAction;
 import java.util.Objects;
 import java.util.concurrent.atomic.AtomicBoolean;
 

@@ -61,11 +60,11 @@
         if (null == path) {
             return null;
         }
         try {
             path = path.trim();
-            final Path dir = Paths.get(path.length() == 0 ? "." : path);
+            final Path dir = Path.get(path.length() == 0 ? "." : path);
             AccessController.doPrivileged(new PrivilegedAction<>() {
                     @Override
                     public Void run() {
                         validateDumpDir(dir);
                         return null;
< prev index next >