suppress false positive

Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/48a0930e
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/48a0930e
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/48a0930e

Branch: refs/heads/master
Commit: 48a0930e98cc65f1b42e51cbe92f735eb3c95a51
Parents: b36f7c9
Author: Stefan Bodewig <bode...@apache.org>
Authored: Fri Mar 25 16:05:05 2016 +0100
Committer: Stefan Bodewig <bode...@apache.org>
Committed: Fri Mar 25 16:05:05 2016 +0100

----------------------------------------------------------------------
 findbugs-exclude-filter.xml | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/48a0930e/findbugs-exclude-filter.xml
----------------------------------------------------------------------
diff --git a/findbugs-exclude-filter.xml b/findbugs-exclude-filter.xml
index 7074237..5cc6c5e 100644
--- a/findbugs-exclude-filter.xml
+++ b/findbugs-exclude-filter.xml
@@ -165,4 +165,12 @@
     <Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE" />
   </Match>
 
+  <!-- Reason: nested code can throw IllegalArgumentException if
+       stream is not a TAR stream -->
+  <Match>
+    <Class name="org.apache.commons.compress.archivers.ArchiveStreamFactory" />
+    <Method name="createArchiveInputStream" />
+    <Bug pattern="REC_CATCH_EXCEPTION" />
+  </Match>
+  
 </FindBugsFilter>

Reply via email to