The file already contains the leading slash. hotspot URL.getFile() also returns a leading slash, so instead of removing the leading slash on the file, we just wont append an extra one here

This commit is contained in:
Mike Jensen 2012-03-14 14:42:58 -06:00 committed by Joel Dice
parent a96f34709c
commit e6e65ecfdc

View File

@ -72,9 +72,6 @@ public abstract class URLStreamHandler {
} }
} }
if (url.getFile() != null) { if (url.getFile() != null) {
if (url.getHost() != null) {
sb.append("/");
}
sb.append(url.getFile()); sb.append(url.getFile());
} }
return sb.toString(); return sb.toString();