/src/main/java/org/htmlunit/util/UrlUtils.java
sb.append( c) ;s.append( ref) ;
s.append ( ref ) ;
s.append('?').append(query); } if (ref != null) { if (ref.isEmpty() || ref.charAt(0) != '#') { s.append('#'); } <extra_id_0> } 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;