2008-01-13 15:59:58 -05:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
2008-01-16 13:24:23 -05:00
|
|
|
See the License for the specific language governing permissions and
|
2008-01-13 15:59:58 -05:00
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!--
|
|
|
|
This file contains some false positive bugs detected by findbugs. Their
|
|
|
|
false positive nature has been analyzed individually and they have been
|
|
|
|
put here to instruct findbugs it must ignore them.
|
|
|
|
-->
|
|
|
|
<FindBugsFilter>
|
|
|
|
|
|
|
|
<!-- the following equality tests are part of the reference algorithms -->
|
|
|
|
<!-- which already know about limited precision of the double numbers -->
|
2009-10-28 17:54:13 -04:00
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.distribution.SaddlePointExpansion" />
|
|
|
|
<Or>
|
|
|
|
<Method name="getDeviancePart" params="double,double" returns="double" />
|
|
|
|
<Method name="getStirlingError" params="double" returns="double" />
|
|
|
|
</Or>
|
|
|
|
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
|
|
|
|
</Match>
|
2009-01-18 11:57:29 -05:00
|
|
|
<Match>
|
2009-03-24 18:17:13 -04:00
|
|
|
<Class name="org.apache.commons.math.optimization.univariate.BrentOptimizer" />
|
2010-09-04 09:19:01 -04:00
|
|
|
<Method name="localMin" params="boolean,double,double,double,double,double" returns="double" />
|
2009-01-18 11:57:29 -05:00
|
|
|
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
|
|
|
|
</Match>
|
2008-01-13 15:59:58 -05:00
|
|
|
<Match>
|
2009-01-18 08:07:22 -05:00
|
|
|
<Class name="org.apache.commons.math.analysis.solvers.BrentSolver" />
|
2009-01-05 17:17:12 -05:00
|
|
|
<Method name="solve" params="org.apache.commons.math.analysis.UnivariateRealFunction,double,double,double,double,double,double" returns="double" />
|
2008-01-13 15:59:58 -05:00
|
|
|
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
|
|
|
|
</Match>
|
|
|
|
<Match>
|
2009-01-18 08:07:22 -05:00
|
|
|
<Class name="org.apache.commons.math.analysis.solvers.MullerSolver" />
|
2008-01-13 15:59:58 -05:00
|
|
|
<Or>
|
2009-01-05 17:17:12 -05:00
|
|
|
<Method name="solve" params="org.apache.commons.math.analysis.UnivariateRealFunction,double,double" returns="double" />
|
|
|
|
<Method name="solve2" params="org.apache.commons.math.analysis.UnivariateRealFunction,double,double" returns="double" />
|
2008-01-13 15:59:58 -05:00
|
|
|
</Or>
|
|
|
|
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
|
|
|
|
</Match>
|
2009-07-01 12:03:28 -04:00
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.linear.EigenDecompositionImpl" />
|
2010-02-28 14:55:07 -05:00
|
|
|
<Method name="findEigenVectors" params="double[][]" returns="void" />
|
2009-07-01 12:03:28 -04:00
|
|
|
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
|
|
|
|
</Match>
|
|
|
|
|
|
|
|
<!-- The following equality test is intentional and needed for semantic purposes -->
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.geometry.Vector3D" />
|
|
|
|
<Method name="equals" params="java.lang.Object" returns="boolean" />
|
|
|
|
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
|
|
|
|
</Match>
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.optimization.linear.LinearConstraint" />
|
|
|
|
<Method name="equals" params="java.lang.Object" returns="boolean" />
|
|
|
|
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
|
|
|
|
</Match>
|
2008-01-13 15:59:58 -05:00
|
|
|
|
|
|
|
<!-- The following equality test is intentional and needed for rounding purposes -->
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.util.MathUtils" />
|
|
|
|
<Method name="roundUnscaled" params="double,double,int" returns="double" />
|
|
|
|
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
|
|
|
|
</Match>
|
|
|
|
|
2009-06-20 09:42:56 -04:00
|
|
|
<!-- The following equality test is intentional for division protection -->
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.analysis.interpolation.LoessInterpolator" />
|
|
|
|
<Method name="smooth" params="double[],double[]" returns="double[]" />
|
|
|
|
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
|
|
|
|
</Match>
|
|
|
|
|
2010-08-29 17:49:40 -04:00
|
|
|
<!-- The following equality test is intentional for infinity detection -->
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.util.FastMath" />
|
|
|
|
<Method name="atan2" params="double,double" returns="double" />
|
|
|
|
<Bug pattern="FE_FLOATING_POINT_EQUALITY" />
|
|
|
|
</Match>
|
2011-01-01 21:56:35 -05:00
|
|
|
|
|
|
|
<!-- Spurious: Findbugs confused by final local variables -->
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.util.FastMath" />
|
|
|
|
<Method name="atan" params="double,double,boolean" returns="double" />
|
|
|
|
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
|
|
|
|
</Match>
|
2008-01-13 15:59:58 -05:00
|
|
|
|
|
|
|
<!-- the following expositions of internal representation are intentional and documented -->
|
2010-10-10 10:47:17 -04:00
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic"/>
|
|
|
|
<Method name="getDataRef" params="" returns="double[]" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP" />
|
|
|
|
</Match>
|
2009-03-14 13:35:49 -04:00
|
|
|
<Match>
|
2009-03-24 18:17:13 -04:00
|
|
|
<Class name="org.apache.commons.math.optimization.RealPointValuePair"/>
|
2009-03-14 13:35:49 -04:00
|
|
|
<Method name="getPointRef" params="" returns="double[]" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP" />
|
|
|
|
</Match>
|
|
|
|
<Match>
|
2009-03-24 18:17:13 -04:00
|
|
|
<Class name="org.apache.commons.math.optimization.RealPointValuePair"/>
|
2009-03-14 13:35:49 -04:00
|
|
|
<Method name="<init>" params="double[],double,boolean" returns="void" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP2" />
|
|
|
|
</Match>
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.optimization.VectorialPointValuePair"/>
|
|
|
|
<Or>
|
|
|
|
<Method name="getPointRef" params="" returns="double[]" />
|
|
|
|
<Method name="getValueRef" params="" returns="double[]" />
|
|
|
|
</Or>
|
|
|
|
<Bug pattern="EI_EXPOSE_REP" />
|
|
|
|
</Match>
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.optimization.VectorialPointValuePair"/>
|
|
|
|
<Method name="<init>" params="double[],double[][],boolean" returns="void" />
|
2010-03-06 16:30:37 -05:00
|
|
|
<Bug pattern="EI_EXPOSE_REP2" />
|
|
|
|
</Match>
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.ode.sampling.DummyStepInterpolator"/>
|
|
|
|
<Method name="<init>" params="double[],double[],boolean" returns="void" />
|
2009-03-14 13:35:49 -04:00
|
|
|
<Bug pattern="EI_EXPOSE_REP2" />
|
|
|
|
</Match>
|
2008-07-26 15:35:35 -04:00
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.ode.sampling.AbstractStepInterpolator"/>
|
|
|
|
<Or>
|
|
|
|
<Method name="getInterpolatedState" params="" returns="double[]" />
|
|
|
|
<Method name="getInterpolatedDerivatives" params="" returns="double[]" />
|
|
|
|
</Or>
|
|
|
|
<Bug pattern="EI_EXPOSE_REP" />
|
|
|
|
</Match>
|
2009-04-05 15:10:44 -04:00
|
|
|
<Match>
|
2009-06-01 09:21:03 -04:00
|
|
|
<Class name="org.apache.commons.math.ode.sampling.NordsieckStepInterpolator"/>
|
2009-07-19 14:35:43 -04:00
|
|
|
<Method name="reinitialize" params="double,double,double[],org.apache.commons.math.linear.Array2DRowRealMatrix" returns="void" />
|
2009-04-05 15:10:44 -04:00
|
|
|
<Bug pattern="EI_EXPOSE_REP2" />
|
|
|
|
</Match>
|
2009-07-07 03:57:37 -04:00
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.ode.sampling.NordsieckStepInterpolator"/>
|
|
|
|
<Method name="getInterpolatedStateVariation" params="" returns="double[]" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP" />
|
|
|
|
</Match>
|
2008-07-26 15:35:35 -04:00
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.linear.BigMatrixImpl"/>
|
|
|
|
<Method name="<init>" params="java.math.BigDecimal[][],boolean" returns="void" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP2" />
|
|
|
|
</Match>
|
2008-01-13 15:59:58 -05:00
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.linear.BigMatrixImpl"/>
|
|
|
|
<Method name="getDataRef" params="" returns="java.math.BigDecimal[][]" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP" />
|
|
|
|
</Match>
|
2008-07-26 15:35:35 -04:00
|
|
|
<Match>
|
2009-06-11 04:54:02 -04:00
|
|
|
<Class name="org.apache.commons.math.linear.Array2DRowRealMatrix"/>
|
2008-07-26 15:35:35 -04:00
|
|
|
<Method name="<init>" params="double[][],boolean" returns="void" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP2" />
|
|
|
|
</Match>
|
2008-01-13 15:59:58 -05:00
|
|
|
<Match>
|
2009-06-11 04:54:02 -04:00
|
|
|
<Class name="org.apache.commons.math.linear.Array2DRowRealMatrix"/>
|
2008-01-13 15:59:58 -05:00
|
|
|
<Method name="getDataRef" params="" returns="double[][]" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP" />
|
|
|
|
</Match>
|
2009-06-19 08:38:01 -04:00
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.linear.RealMatrixImpl"/>
|
|
|
|
<Method name="<init>" params="double[][],boolean" returns="void" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP2" />
|
|
|
|
</Match>
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.linear.RealMatrixImpl"/>
|
|
|
|
<Method name="getDataRef" params="" returns="double[][]" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP" />
|
|
|
|
</Match>
|
2009-05-03 12:28:48 -04:00
|
|
|
<Match>
|
2009-06-11 04:05:24 -04:00
|
|
|
<Class name="org.apache.commons.math.linear.BlockFieldMatrix"/>
|
2009-05-03 12:28:48 -04:00
|
|
|
<Method name="<init>" params="int,int,org.apache.commons.math.FieldElement[][],boolean" returns="void" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP2" />
|
|
|
|
</Match>
|
2009-04-19 12:39:40 -04:00
|
|
|
<Match>
|
2009-06-11 04:54:02 -04:00
|
|
|
<Class name="org.apache.commons.math.linear.Array2DRowFieldMatrix"/>
|
2009-04-19 12:39:40 -04:00
|
|
|
<Method name="<init>" params="org.apache.commons.math.FieldElement[][],boolean" returns="void" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP2" />
|
|
|
|
</Match>
|
|
|
|
<Match>
|
2009-06-11 04:54:02 -04:00
|
|
|
<Class name="org.apache.commons.math.linear.Array2DRowFieldMatrix"/>
|
2009-04-19 12:39:40 -04:00
|
|
|
<Method name="getDataRef" params="" returns="org.apache.commons.math.FieldElement[][]" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP" />
|
|
|
|
</Match>
|
2009-01-05 17:32:52 -05:00
|
|
|
<Match>
|
2009-06-11 04:05:24 -04:00
|
|
|
<Class name="org.apache.commons.math.linear.BlockRealMatrix"/>
|
2009-01-05 17:32:52 -05:00
|
|
|
<Method name="<init>" params="int,int,double[][],boolean" returns="void" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP2" />
|
|
|
|
</Match>
|
2008-01-13 15:59:58 -05:00
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.util.ResizableDoubleArray"/>
|
2009-01-05 17:32:52 -05:00
|
|
|
<Or>
|
|
|
|
<Method name="getValues" params="" returns="double[]" />
|
|
|
|
<Method name="getInternalValues" params="" returns="double[]" />
|
|
|
|
</Or>
|
2008-01-13 15:59:58 -05:00
|
|
|
<Bug pattern="EI_EXPOSE_REP" />
|
|
|
|
</Match>
|
2008-07-27 15:15:22 -04:00
|
|
|
<Match>
|
2009-06-11 04:54:02 -04:00
|
|
|
<Class name="org.apache.commons.math.linear.ArrayRealVector"/>
|
2008-07-27 15:15:22 -04:00
|
|
|
<Method name="getDataRef" params="" returns="double[]" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP" />
|
|
|
|
</Match>
|
2009-04-19 12:39:40 -04:00
|
|
|
<Match>
|
2009-06-11 04:54:02 -04:00
|
|
|
<Class name="org.apache.commons.math.linear.ArrayFieldVector"/>
|
2009-04-19 12:39:40 -04:00
|
|
|
<Method name="getDataRef" params="" returns="org.apache.commons.math.FieldElement[]" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP" />
|
|
|
|
</Match>
|
2009-05-03 12:28:48 -04:00
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.stat.clustering.EuclideanIntegerPoint"/>
|
|
|
|
<Method name="<init>" params="int[]" returns="void" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP2" />
|
|
|
|
</Match>
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.stat.clustering.EuclideanIntegerPoint"/>
|
|
|
|
<Method name="getPoint" params="" returns="int[]" />
|
|
|
|
<Bug pattern="EI_EXPOSE_REP" />
|
|
|
|
</Match>
|
2008-01-13 15:59:58 -05:00
|
|
|
|
|
|
|
<!-- The following cases are intentional unit tests for null parameters -->
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.stat.StatUtilsTest" />
|
|
|
|
<Method name="testPercentile" params="" returns="void" />
|
|
|
|
<Bug pattern="NP_NULL_PARAM_DEREF_NONVIRTUAL" />
|
|
|
|
</Match>
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.analysis.UnivariateRealSolverFactoryImplTest" />
|
|
|
|
<Method name="testNewNewtonSolverNull" params="" returns="void" />
|
|
|
|
<Bug pattern="NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS" />
|
|
|
|
</Match>
|
2009-07-01 16:31:50 -04:00
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.stat.regression.OLSMultipleLinearRegressionTest" />
|
|
|
|
<Method name="cannotAddNullYSampleData" params="" returns="void" />
|
|
|
|
<Bug pattern="NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS" />
|
|
|
|
</Match>
|
2009-05-19 09:31:34 -04:00
|
|
|
|
|
|
|
<!-- IntDoublePair intentionally implements Comparable inconsistently with equals -->
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.math.stat.ranking.NaturalRanking$IntDoublePair" />
|
|
|
|
<Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS" />
|
|
|
|
</Match>
|
2008-01-13 15:59:58 -05:00
|
|
|
|
|
|
|
</FindBugsFilter>
|