This commit is contained in:
Phillip Webb
2016-06-24 11:52:43 -07:00
parent 0d207d438a
commit c22a0e90a2
2 changed files with 2 additions and 4 deletions

View File

@@ -96,8 +96,8 @@ class JarURLConnection extends java.net.JarURLConnection {
if (separatorIndex < 0) {
return "";
}
return file
.substring(separatorIndex + SEPARATOR.length() + pathFromRoot.length());
int specIndex = separatorIndex + SEPARATOR.length() + pathFromRoot.length();
return file.substring(specIndex);
}
private JarFile getNestedJarFile(JarFile jarFile, String name) throws IOException {