various performance tweaks and bugfixes

This commit is contained in:
Joel Dice
2007-08-19 13:45:51 -06:00
parent 747e7b0371
commit 59638543c7
13 changed files with 123 additions and 82 deletions

View File

@ -52,9 +52,9 @@ public abstract class URLStreamHandler {
protected String toExternalForm(URL url) {
StringBuilder sb = new StringBuilder();
sb.append(url.getProtocol()).append("://");
sb.append(url.getProtocol()).append(":");
if (url.getHost() != null) {
sb.append(url.getHost());
sb.append("//").append(url.getHost());
if (url.getPort() >= 0) {
sb.append(":").append(url.getPort());
}