There is General exception 'IOException' in the throws list already.
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/6c203ab4 Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/6c203ab4 Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/6c203ab4 Branch: refs/heads/master Commit: 6c203ab46b24751c285f021caad9d8969cf2f45f Parents: f8e33e7 Author: shahab <[email protected]> Authored: Sun Jan 14 14:25:04 2018 -0500 Committer: Stefan Bodewig <[email protected]> Committed: Thu Jan 18 14:20:49 2018 +0100 ---------------------------------------------------------------------- .../java/org/apache/commons/compress/archivers/zip/ZipFile.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-compress/blob/6c203ab4/src/main/java/org/apache/commons/compress/archivers/zip/ZipFile.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/compress/archivers/zip/ZipFile.java b/src/main/java/org/apache/commons/compress/archivers/zip/ZipFile.java index a236320..6a2c2a2 100644 --- a/src/main/java/org/apache/commons/compress/archivers/zip/ZipFile.java +++ b/src/main/java/org/apache/commons/compress/archivers/zip/ZipFile.java @@ -470,10 +470,9 @@ public class ZipFile implements Closeable { * @param ze the entry to get the stream for. * @return a stream to read the entry from. * @throws IOException if unable to create an input stream from the zipentry - * @throws ZipException if the zipentry uses an unsupported feature */ public InputStream getInputStream(final ZipArchiveEntry ze) - throws IOException, ZipException { + throws IOException { if (!(ze instanceof Entry)) { return null; }
