JarFile.java: Don't call java.util.zip.ZipFile.getEntry twice.

* java/util/jar/JarFile.java: Don't call
        java.util.zip.ZipFile.getEntry twice.  From Mark Wielaard
        <mark@klomp.org>.

From-SVN: r35824
This commit is contained in:
Anthony Green 2000-08-20 19:40:25 +00:00 committed by Anthony Green
parent 9c66892187
commit 53e687fabb
2 changed files with 7 additions and 1 deletions

View file

@ -232,7 +232,7 @@ public class JarFile extends ZipFile {
public ZipEntry getEntry(String name) {
ZipEntry entry = super.getEntry(name);
if (entry != null) {
JarEntry jarEntry = new JarEntry(super.getEntry(name));
JarEntry jarEntry = new JarEntry(entry);
if (manifest != null) {
jarEntry.attr = manifest.getAttributes(name);
// XXX jarEntry.certs