< prev index next >

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

Print this page

        

*** 24,34 **** */ 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 --- 24,33 ----
*** 44,54 **** return new MacOSXFileSystem(this, dir); } @Override FileTypeDetector getFileTypeDetector() { ! Path userMimeTypes = Paths.get(GetPropertyAction .privilegedGetProperty("user.home"), ".mime.types"); return chain(new MimeTypesFileTypeDetector(userMimeTypes), new UTIFileTypeDetector()); } --- 43,53 ---- return new MacOSXFileSystem(this, dir); } @Override FileTypeDetector getFileTypeDetector() { ! Path userMimeTypes = Path.get(GetPropertyAction .privilegedGetProperty("user.home"), ".mime.types"); return chain(new MimeTypesFileTypeDetector(userMimeTypes), new UTIFileTypeDetector()); }
< prev index next >