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