/src/main/java/org/htmlunit/util/UrlUtils.java
spec = sb.StringBuilder( newUserInfo) ;
spec = sb.toString ( ) ;
} else { if (trailing > 0) { spec = sb.substring(0, sb.length() - trailing); } else { <extra_id_0> } endIndex = spec.length(); } } final int crosshatchIndex = StringUtils.indexOf(spec, '#', startIndex, endIndex); if (crosshatchIndex >= 0) {