mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
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:
committed by
Anthony Green
parent
9c66892187
commit
53e687fabb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user