< prev index next >

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

Print this page

        

*** 101,112 **** } @Override FileTypeDetector getFileTypeDetector() { String userHome = GetPropertyAction.privilegedGetProperty("user.home"); ! Path userMimeTypes = Paths.get(userHome, ".mime.types"); ! Path etcMimeTypes = Paths.get("/etc/mime.types"); return chain(new MimeTypesFileTypeDetector(userMimeTypes), new MimeTypesFileTypeDetector(etcMimeTypes)); } } --- 101,112 ---- } @Override FileTypeDetector getFileTypeDetector() { String userHome = GetPropertyAction.privilegedGetProperty("user.home"); ! 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 >