< prev index next >

src/java.base/share/classes/java/net/JarURLConnection.java

Print this page

        

@@ -252,11 +252,11 @@
      *
      * @see #getJarFile
      * @see #getJarEntry
      */
     public JarEntry getJarEntry() throws IOException {
-        return entryName == null ? null : getJarFile().getJarEntry(entryName);
+        return getJarFile().getJarEntry(entryName);
     }
 
     /**
      * Return the Attributes object for this connection if the URL
      * for it points to a JAR file entry, null otherwise.
< prev index next >