/[classpath]/classpath/java/net/URLStreamHandler.java
ViewVC logotype

Diff of /classpath/java/net/URLStreamHandler.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by jewel, Thu Dec 5 16:54:14 2002 UTC revision 1.12 by mark, Tue Dec 24 19:07:53 2002 UTC
# Line 438  public abstract class URLStreamHandler Line 438  public abstract class URLStreamHandler
438      // ignores a non-default port if host is null or "".  That is inconsistent      // ignores a non-default port if host is null or "".  That is inconsistent
439      // with the spec since the result of this method is spec'ed so it can be      // with the spec since the result of this method is spec'ed so it can be
440      // used to construct a new URL that is equivalent to the original.      // used to construct a new URL that is equivalent to the original.
441      boolean port_needed = port >= 0 && port != getDefaultPort();      boolean port_needed = port > 0 && port != getDefaultPort();
442      if (port_needed)      if (port_needed)
443        sb.append(':').append(port);        sb.append(':').append(port);
444    

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26