commit | 5e5804c848a660825e853f1aa9da672f9318edfd | [log] [tgz] |
---|---|---|
author | Stefan Bodewig <bodewig@apache.org> | Thu Feb 05 12:45:23 2009 +0000 |
committer | Stefan Bodewig <bodewig@apache.org> | Thu Feb 05 12:45:23 2009 +0000 |
tree | 5b82f85dedb13502bf92177269220ef53cb18049 | |
parent | 743d7c5498d64d6ee9badb95655e3e7178735a09 [diff] [blame] |
merge revision 741089 from Ant trunk - fix for various findbugs issues - [SANDBOX-246] git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/compress/trunk@741092 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/commons/compress/archivers/zip/AsiExtraField.java b/src/main/java/org/apache/commons/compress/archivers/zip/AsiExtraField.java index f192246..094a198 100644 --- a/src/main/java/org/apache/commons/compress/archivers/zip/AsiExtraField.java +++ b/src/main/java/org/apache/commons/compress/archivers/zip/AsiExtraField.java
@@ -334,4 +334,14 @@ return type | (mode & PERM_MASK); } + public Object clone() { + try { + AsiExtraField cloned = (AsiExtraField) super.clone(); + cloned.crc = new CRC32(); + return cloned; + } catch (CloneNotSupportedException cnfe) { + // impossible + throw new RuntimeException(cnfe); + } + } }