implement Closeable in ZipFile to be compatible with 1.9.7
Project: http://git-wip-us.apache.org/repos/asf/ant/repo Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/f7f58eee Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/f7f58eee Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/f7f58eee Branch: refs/heads/master Commit: f7f58eeec17ba406384d992ccf0d3b00e073dedb Parents: 311138d Author: Stefan Bodewig <[email protected]> Authored: Tue Mar 29 11:03:56 2016 +0200 Committer: Stefan Bodewig <[email protected]> Committed: Tue Mar 29 11:03:56 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/f7f58eee/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 20d8c43..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 implements AutoCloseable { +public class ZipFile implements Closeable { private static final int HASH_SIZE = 509; static final int NIBLET_MASK = 0x0f; static final int BYTE_SHIFT = 8;
