src/java.base/windows/classes/sun/net/www/protocol/file/Handler.java
changeset 52902 e3398b2e1ab0
parent 51759 ac6e9a2ebc04
child 53018 8bf9268df0e2
equal deleted inserted replaced
52901:3ba9ff4d4aaf 52902:e3398b2e1ab0
    81 
    81 
    82         path = ParseUtil.decode(file);
    82         path = ParseUtil.decode(file);
    83         path = path.replace('/', '\\');
    83         path = path.replace('/', '\\');
    84         path = path.replace('|', ':');
    84         path = path.replace('|', ':');
    85 
    85 
    86         if ((host == null) || host.equals("") ||
    86         if ((host == null) || host.isEmpty() ||
    87                 host.equalsIgnoreCase("localhost") ||
    87                 host.equalsIgnoreCase("localhost") ||
    88                 host.equals("~")) {
    88                 host.equals("~")) {
    89            return createFileURLConnection(url, new File(path));
    89            return createFileURLConnection(url, new File(path));
    90         }
    90         }
    91 
    91