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
parent 443097f3bc
commit 4975270580

View File

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