Browse Source

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
master
Jacobus Martinus Kruithof 20 years ago
parent
commit
778ee790cb
1 changed files with 0 additions and 7 deletions
  1. +0
    -7
      src/main/org/apache/tools/zip/ZipEntry.java

+ 0
- 7
src/main/org/apache/tools/zip/ZipEntry.java View File

@@ -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;
}
}

/**


Loading…
Cancel
Save