--- old/src/java.base/windows/classes/sun/nio/fs/WindowsUriSupport.java 2018-12-06 17:53:06.449445964 -0500 +++ new/src/java.base/windows/classes/sun/nio/fs/WindowsUriSupport.java 2018-12-06 17:53:06.281445131 -0500 @@ -128,12 +128,12 @@ if (uri.getRawQuery() != null) throw new IllegalArgumentException("URI has a query component"); String path = uri.getPath(); - if (path.equals("")) + if (path.isEmpty()) throw new IllegalArgumentException("URI path component is empty"); // UNC String auth = uri.getRawAuthority(); - if (auth != null && !auth.equals("")) { + if (auth != null && !auth.isEmpty()) { String host = uri.getHost(); if (host == null) throw new IllegalArgumentException("URI authority component has undefined host");