src/java.base/unix/classes/sun/nio/fs/UnixFileStore.java
changeset 49285 4d2e3f5abb48
parent 47428 d72d7d55c765
child 50817 fa1e04811ff6
equal deleted inserted replaced
49284:a51ca91c2cde 49285:4d2e3f5abb48
     1 /*
     1 /*
     2  * Copyright (c) 2008, 2017, 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
   258     }
   258     }
   259 
   259 
   260     private static Properties loadProperties() {
   260     private static Properties loadProperties() {
   261         Properties result = new Properties();
   261         Properties result = new Properties();
   262         String fstypes = System.getProperty("java.home") + "/lib/fstypes.properties";
   262         String fstypes = System.getProperty("java.home") + "/lib/fstypes.properties";
   263         Path file = Paths.get(fstypes);
   263         Path file = Path.of(fstypes);
   264         try {
   264         try {
   265             try (ReadableByteChannel rbc = Files.newByteChannel(file)) {
   265             try (ReadableByteChannel rbc = Files.newByteChannel(file)) {
   266                 result.load(Channels.newReader(rbc, "UTF-8"));
   266                 result.load(Channels.newReader(rbc, "UTF-8"));
   267             }
   267             }
   268         } catch (IOException x) {
   268         } catch (IOException x) {