Skip to content
Snippets Groups Projects
Commit a88c283f authored by Mark Wielaard's avatar Mark Wielaard Committed by Mark Wielaard
Browse files

URLStreamHandler.java (toExternalForm): Ignore port if zero or smaller.

	* java/net/URLStreamHandler.java (toExternalForm): Ignore port
	if zero or smaller.

From-SVN: r60657
parent 582f6e6d
No related branches found
No related tags found
No related merge requests found
2002-12-30 Mark Wielaard <mark@klomp.org>
* java/net/URLStreamHandler.java (toExternalForm): Ignore port
if zero or smaller.
2002-12-30 Mark Wielaard <mark@klomp.org>
* java/util/Properties (formatForOutput): Don't fall through to
......
......@@ -436,7 +436,7 @@ public abstract class URLStreamHandler
// ignores a non-default port if host is null or "". That is inconsistent
// with the spec since the result of this method is spec'ed so it can be
// used to construct a new URL that is equivalent to the original.
boolean port_needed = port >= 0 && port != getDefaultPort();
boolean port_needed = port > 0 && port != getDefaultPort();
if (port_needed)
sb.append(':').append(port);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment