src/java.base/solaris/classes/sun/nio/fs/SolarisFileSystemProvider.java
changeset 49285 4d2e3f5abb48
parent 47216 71c04702a3d5
child 50817 fa1e04811ff6
equal deleted inserted replaced
49284:a51ca91c2cde 49285:4d2e3f5abb48
     1 /*
     1 /*
     2  * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    82         return super.getFileAttributeView(obj, name, options);
    82         return super.getFileAttributeView(obj, name, options);
    83     }
    83     }
    84 
    84 
    85     @Override
    85     @Override
    86     FileTypeDetector getFileTypeDetector() {
    86     FileTypeDetector getFileTypeDetector() {
    87         Path userMimeTypes = Paths.get(
    87         Path userMimeTypes = Path.of(
    88             GetPropertyAction.privilegedGetProperty("user.home"), ".mime.types");
    88             GetPropertyAction.privilegedGetProperty("user.home"), ".mime.types");
    89         Path etcMimeTypes = Paths.get("/etc/mime.types");
    89         Path etcMimeTypes = Path.of("/etc/mime.types");
    90 
    90 
    91         return chain(new MimeTypesFileTypeDetector(userMimeTypes),
    91         return chain(new MimeTypesFileTypeDetector(userMimeTypes),
    92                      new MimeTypesFileTypeDetector(etcMimeTypes));
    92                      new MimeTypesFileTypeDetector(etcMimeTypes));
    93     }
    93     }
    94 }
    94 }