diff --git a/src/main/org/apache/tools/zip/ZipEntry.java b/src/main/org/apache/tools/zip/ZipEntry.java index efef42a48..6c53648a0 100644 --- a/src/main/org/apache/tools/zip/ZipEntry.java +++ b/src/main/org/apache/tools/zip/ZipEntry.java @@ -112,7 +112,6 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable { * @since 1.1 */ public Object clone() { - try { ZipEntry e = (ZipEntry) super.clone(); e.setName(getName()); @@ -137,12 +136,6 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable { e.setExternalAttributes(getExternalAttributes()); e.setExtraFields(getExtraFields()); return e; - } catch (Throwable t) { - // in JDK 1.1 ZipEntry is not Cloneable, so super.clone declares - // to throw CloneNotSupported - since JDK 1.2 it is overridden to - // not throw that exception - return null; - } } /**