Prevent findbugs false positive.

Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/4757bc82
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/4757bc82
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/4757bc82

Branch: refs/heads/MATH_3_X
Commit: 4757bc82f9bb3457db6c6ad1f825a9f9214a7d48
Parents: 6259f3f
Author: Luc Maisonobe <l...@apache.org>
Authored: Fri Dec 25 16:54:16 2015 +0100
Committer: Luc Maisonobe <l...@apache.org>
Committed: Fri Dec 25 16:54:16 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/commons-math/blob/4757bc82/findbugs-exclude-filter.xml
----------------------------------------------------------------------
diff --git a/findbugs-exclude-filter.xml b/findbugs-exclude-filter.xml
index 5a960ca..d32fbbe 100644
--- a/findbugs-exclude-filter.xml
+++ b/findbugs-exclude-filter.xml
@@ -23,6 +23,14 @@
 -->
 <FindBugsFilter>
 
+  <!-- the following field is unused but cannot be suppressed as it is 
protected -->
+  <!-- and some user class may require it -->
+  <Match>
+    <Class 
name="org.apache.commons.math3.analysis.integration.BaseAbstractUnivariateIntegrator"
 />
+    <Method name="&lt;init>" params="double,double,int,int" returns="void" />
+    <Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" />
+  </Match>
+
   <!--  the following equality tests are part of the reference algorithms -->
   <!--  which already know about limited precision of the double numbers -->
   <Match>

Reply via email to