changeset 53018 | 8bf9268df0e2 |
parent 48897 | 3f19b5965355 |
child 54688 | 96ad739cfc39 |
--- a/src/java.base/share/classes/sun/net/www/ParseUtil.java Thu Dec 13 16:14:07 2018 +0100 +++ b/src/java.base/share/classes/sun/net/www/ParseUtil.java Thu Dec 13 15:31:05 2018 +0100 @@ -536,8 +536,7 @@ throws URISyntaxException { if (scheme != null) { - if ((path != null) - && ((path.length() > 0) && (path.charAt(0) != '/'))) + if (path != null && !path.isEmpty() && path.charAt(0) != '/') throw new URISyntaxException(s, "Relative path in absolute URI"); }