/src/main/java/org/htmlunit/util/UrlUtils.java
if ( !authority.isEmpty( ) ) {
if ( authority != null && !authority.isEmpty ( ) ) {
} return new URL(s.toString()); } private static URL createNewUrl(final String protocol, final String authority, final String path, final String ref, final String query) throws MalformedURLException { int len = protocol.length() + 1; <extra_id_0> len += 2 + authority.length(); } if (path != null) { len += path.length(); } if (query != null) {