Polish contribution

Closes gh-12236
This commit is contained in:
Stephane Nicoll
2018-02-28 09:01:59 +01:00
parent 56cbc65e7b
commit 4180762d6d
6 changed files with 7 additions and 6 deletions

View File

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