ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject [1/2] ant git commit: make ZipFile implement Closeable
Date Mon, 28 Mar 2016 12:08:06 GMT
Repository: ant
Updated Branches:
  refs/heads/1.9.x 67aea0e57 -> a8d6367dd


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/1.9.x
Commit: cd1ff3566ed915392041314eb583a638bcb1eb64
Parents: 67aea0e
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Mon Mar 28 13:42:42 2016 +0200
Committer: Stefan Bodewig <bodewig@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;


Mime
View raw message