< prev index next >

src/java.base/macosx/classes/sun/nio/fs/MacOSXFileSystemProvider.java

Print this page

        

@@ -24,11 +24,10 @@
  */
 
 package sun.nio.fs;
 
 import java.nio.file.Path;
-import java.nio.file.Paths;
 import java.nio.file.spi.FileTypeDetector;
 import sun.security.action.GetPropertyAction;
 
 /**
  * MacOSX implementation of FileSystemProvider

@@ -44,11 +43,11 @@
         return new MacOSXFileSystem(this, dir);
     }
 
     @Override
     FileTypeDetector getFileTypeDetector() {
-        Path userMimeTypes = Paths.get(GetPropertyAction
+        Path userMimeTypes = Path.get(GetPropertyAction
                 .privilegedGetProperty("user.home"), ".mime.types");
 
         return chain(new MimeTypesFileTypeDetector(userMimeTypes),
                      new UTIFileTypeDetector());
     }
< prev index next >