@Override
    protected void parseURL(URL url, String spec, int start, int limit) {
        boolean hasScheme = start != 0 && spec.charAt(start - 1) == ':';
        spec = spec.substring(start, limit);

        String path;
        if (hasScheme) {
            // If the "wsjar:" protocol was specified in the spec, then we are
            // not parsing relative to another URL.  The "jar" protocol
            // requires that the path contain an entry path and that the base
            // URL be valid.  For backwards compatibility, we enforce neither.
            path = spec;
        } else {
            path = parseRelativeURL(url, spec);
        }

        setURL(url, "wsjar", url.getHost(), url.getPort(), url.getAuthority(), url.getUserInfo(), path, url.getQuery(), url.getRef());

    }
@ Override protected void parseURL ( URL url , String spec , int start , int limit ) { boolean hasScheme = start != 0 && spec . charAt ( start - 1 ) == ':' ; spec = spec . substring ( start , limit ) ; String path ; if ( hasScheme ) { path = spec ; } else { path = parseRelativeURL ( url , spec ) ; } setURL ( url , "wsjar" , url . getHost ( ) , url . getPort ( ) , url . getAuthority ( ) , url . getUserInfo ( ) , path , url . getQuery ( ) , url . getRef ( ) ) ; }
begin 412642