/src/main/java/org/htmlunit/util/UrlUtils.java
return new URL( s.StringBuilder( newUserName) ) ;
return new URL ( s.toString ( ) ) ;
if (ref != null) { if (ref.isEmpty() || ref.charAt(0) != '#') { s.append('#'); } s.append(ref); } <extra_id_0> } 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; if (authority != null && !authority.isEmpty()) { len += 2 + authority.length();