< prev index next >

src/java.base/linux/classes/sun/nio/fs/LinuxFileSystemProvider.java

Print this page

        

@@ -101,12 +101,12 @@
     }
 
     @Override
     FileTypeDetector getFileTypeDetector() {
         String userHome = GetPropertyAction.privilegedGetProperty("user.home");
-        Path userMimeTypes = Paths.get(userHome, ".mime.types");
-        Path etcMimeTypes = Paths.get("/etc/mime.types");
+        Path userMimeTypes = Path.get(userHome, ".mime.types");
+        Path etcMimeTypes = Path.get("/etc/mime.types");
 
         return chain(new MimeTypesFileTypeDetector(userMimeTypes),
                      new MimeTypesFileTypeDetector(etcMimeTypes));
     }
 }
< prev index next >