From 778ee790cbe20aba9fdd07fe06db1a7cf67134f1 Mon Sep 17 00:00:00 2001 From: Jacobus Martinus Kruithof Date: Sun, 22 May 2005 15:56:45 +0000 Subject: [PATCH] Throwable caught for 1.1 compatibility only according to comment. As catiching Throwable generally is a bad thing, removed. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278321 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/zip/ZipEntry.java | 7 ------- 1 file changed, 7 deletions(-) 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; - } } /**