rev 52979 : 8215281: Use String.isEmpty() when applicable in java.base Reviewed-by: TBD
@@ -76,11 +76,11 @@ */ public static String toResourceName(Path dir, Path file) { String s = dir.relativize(file) .toString() .replace(File.separatorChar, '/'); - if (s.length() > 0 && Files.isDirectory(file)) + if (!s.isEmpty() && Files.isDirectory(file)) s += "/"; return s; } /**