/src/main/java/org/htmlunit/util/UrlUtils.java
buffer.append( '/') ;sb.append( c) ;
sb.append ( c ) ;
if (remove) { if (sb == null) { sb = new StringBuilder(spec.substring(0, i)); } } else if (sb != null) { <extra_id_0> } } if (sb == null) { if (trailing > 0) { endIndex = spec.length() - trailing; spec = spec.substring(0, endIndex);