This commit is contained in:
Phillip Webb
2018-02-28 10:42:47 -08:00
parent 67998e983f
commit 7bc535e4fa
13 changed files with 111 additions and 129 deletions

View File

@@ -266,8 +266,7 @@ final class JarURLConnection extends java.net.JarURLConnection {
index = separator + SEPARATOR.length();
}
JarEntryName jarEntryName = JarEntryName.get(spec, index);
if (Boolean.TRUE.equals(useFastExceptions.get())
&& !jarEntryName.isEmpty()
if (Boolean.TRUE.equals(useFastExceptions.get()) && !jarEntryName.isEmpty()
&& !jarFile.containsEntry(jarEntryName.toString())) {
return NOT_FOUND_CONNECTION;
}