Polish
See gh-12236
This commit is contained in:
committed by
Stephane Nicoll
parent
a93052f380
commit
56cbc65e7b
@@ -266,11 +266,10 @@ final class JarURLConnection extends java.net.JarURLConnection {
|
||||
index = separator + SEPARATOR.length();
|
||||
}
|
||||
JarEntryName jarEntryName = JarEntryName.get(spec, index);
|
||||
if (Boolean.TRUE.equals(useFastExceptions.get())) {
|
||||
if (!jarEntryName.isEmpty()
|
||||
if (Boolean.TRUE.equals(useFastExceptions.get())
|
||||
&& !jarEntryName.isEmpty()
|
||||
&& !jarFile.containsEntry(jarEntryName.toString())) {
|
||||
return NOT_FOUND_CONNECTION;
|
||||
}
|
||||
return NOT_FOUND_CONNECTION;
|
||||
}
|
||||
return new JarURLConnection(url, jarFile, jarEntryName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user