You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2016/03/28 14:10:27 UTC

[2/5] ant git commit: make ZipFile implement Closeable

make ZipFile implement Closeable


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/cd1ff356
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/cd1ff356
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/cd1ff356

Branch: refs/heads/master
Commit: cd1ff3566ed915392041314eb583a638bcb1eb64
Parents: 67aea0e
Author: Stefan Bodewig <bo...@apache.org>
Authored: Mon Mar 28 13:42:42 2016 +0200
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Mon Mar 28 13:42:42 2016 +0200

----------------------------------------------------------------------
 src/main/org/apache/tools/zip/ZipFile.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/cd1ff356/src/main/org/apache/tools/zip/ZipFile.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/zip/ZipFile.java b/src/main/org/apache/tools/zip/ZipFile.java
index 7a2c992..f342310 100644
--- a/src/main/org/apache/tools/zip/ZipFile.java
+++ b/src/main/org/apache/tools/zip/ZipFile.java
@@ -24,6 +24,7 @@ import static org.apache.tools.zip.ZipConstants.WORD;
 import static org.apache.tools.zip.ZipConstants.ZIP64_MAGIC;
 import static org.apache.tools.zip.ZipConstants.ZIP64_MAGIC_SHORT;
 
+import java.io.Closeable;
 import java.io.EOFException;
 import java.io.File;
 import java.io.IOException;
@@ -72,7 +73,7 @@ import java.util.zip.ZipException;
  * </ul>
  *
  */
-public class ZipFile {
+public class ZipFile implements Closeable {
     private static final int HASH_SIZE = 509;
     static final int NIBLET_MASK = 0x0f;
     static final int BYTE_SHIFT = 8;