You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2013/03/29 16:49:23 UTC

svn commit: r1462505 - /commons/proper/math/trunk/findbugs-exclude-filter.xml

Author: luc
Date: Fri Mar 29 15:49:22 2013
New Revision: 1462505

URL: http://svn.apache.org/r1462505
Log:
Fixe findbugs false positive.

Modified:
    commons/proper/math/trunk/findbugs-exclude-filter.xml

Modified: commons/proper/math/trunk/findbugs-exclude-filter.xml
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/findbugs-exclude-filter.xml?rev=1462505&r1=1462504&r2=1462505&view=diff
==============================================================================
--- commons/proper/math/trunk/findbugs-exclude-filter.xml (original)
+++ commons/proper/math/trunk/findbugs-exclude-filter.xml Fri Mar 29 15:49:22 2013
@@ -72,7 +72,15 @@
     <Method name="findEigenVectors" params="double[][]" returns="void" />
     <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
   </Match>
-
+  <Match>
+    <Or>
+      <Class name="org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizer" />
+      <Class name="org.apache.commons.math3.optimization.direct.BOBYQAOptimizer" />
+    </Or>
+    <Method name="altmov" params="int,double" returns="double[]" />
+    <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
+  </Match>
+  
   <!-- The following equality test is intentional and needed for semantic purposes -->
   <Match>
     <Or>
@@ -115,6 +123,34 @@
     <Bug pattern="FE_FLOATING_POINT_EQUALITY" />
   </Match>
 
+  <!-- The following switch fall-through are due to conversion from FORTRAN goto,
+       which are handled by a state integer representing the target labels of the goto.
+       In the original code, this is sequential and fall-through is expected
+   -->
+  <Match>
+    <Or>
+      <Class name="org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizer" />
+      <Class name="org.apache.commons.math3.optimization.direct.BOBYQAOptimizer" />
+    </Or>
+    <Or>
+      <Method name="bobyqb" params="double[],double[]" returns="double" />
+      <Method name="trsbox" />
+      </Or>
+    <Bug pattern="SF_SWITCH_FALLTHROUGH" />
+  </Match>
+  
+  <!-- Spurious: The fields are deprecated and not used anymore
+       (to be removed in 4.0)
+    -->
+  <Match>
+    <Class name="org.apache.commons.math3.optimization.general.AbstractLeastSquaresOptimizer" />
+    <Or>
+      <Field name="weightedResidualJacobian" />
+      <Field name="weightedResiduals" />
+      </Or>
+    <Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" />
+  </Match>
+
   <!-- Spurious: Findbugs confused by final local variables -->
   <Match>
     <Class name="org.apache.commons.math3.util.FastMath" />