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