Changeset 12780


Ignore:
Timestamp:
07/04/10 06:43:52 (13 years ago)
Author:
Mark Evenson
Message:

Small non-functional code and comment cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/Pathname.java

    r12773 r12780  
    607607        if (host != NIL) {
    608608            Debug.assertTrue(host instanceof AbstractString
    609                              || host instanceof Cons);
    610             if (host instanceof Cons) {
     609                             || isURL());
     610            if (isURL()) {
    611611                LispObject scheme = Symbol.GETF.execute(host, SCHEME, NIL);
    612612                LispObject authority = Symbol.GETF.execute(host, AUTHORITY, NIL);
     
    632632        if (device == NIL) {
    633633        } else if (device == Keyword.UNSPECIFIC) {
    634         } else if (device instanceof Cons) {
     634        } else if (isJar()) {
    635635            LispObject[] jars = ((Cons) device).copyToArray();
    636636            StringBuilder prefix = new StringBuilder();
     
    644644            }
    645645            sb = prefix.append(sb);
    646         } else if (device instanceof AbstractString
    647           && device.getStringValue().startsWith("jar:")) {
    648             sb.append(device.getStringValue());
    649646        } else if (device instanceof AbstractString) {
    650647            sb.append(device.getStringValue());
     
    724721        }
    725722        namestring = sb.toString();
    726         // XXX Decide when this is necessary
     723        // XXX Decide if this is necessary
    727724        // if (isURL()) {
    728725        //     namestring = Utilities.uriEncode(namestring);
     
    12371234        } catch (IOException e) {
    12381235            Debug.trace("Failed to make a Pathname from "
    1239               + "." + file + "'");
     1236              + "'" + file + "'");
    12401237            return null;
    12411238        }
     
    12911288                host = defaults.host;
    12921289            }
    1293             if (directory == NIL && defaults != null) {
     1290            if (directory == NIL) {
    12941291                directory = defaults.directory;
    12951292            }
     
    20852082                result = new URL(pathname.getNamestring());
    20862083            } else {
    2087                 // XXX ensure that we have cannonical path.
     2084                // XXX Properly encode Windows drive letters and UNC paths
     2085                // XXX ensure that we have cannonical path?
    20882086                result = new URL("file://" + pathname.getNamestring());
    20892087            }
Note: See TracChangeset for help on using the changeset viewer.