Avoid a false positive findbugs warning.

The source code tests an angle using "angle > (FastMath.PI - 1.0e-10)".
As the compiler does the subtraction of the constants directly, findbugs
complains about a "Rough value of Math.PI found: 3.141592653489793".
This commit is contained in:
Luc Maisonobe 2015-11-03 11:18:59 +01:00
parent 8c2aa686b9
commit fae8d86872
1 changed files with 7 additions and 0 deletions

View File

@ -163,6 +163,13 @@
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<!-- Spurious: Findbugs confused by FastMath.PI - 1.0e-10 -->
<Match>
<Class name="org.apache.commons.math3.geometry.euclidean.threed.Plane" />
<Method name="isSimilarTo" params="org.apache.commons.math3.geometry.euclidean.threed.Plane" returns="boolean" />
<Bug pattern="CNT_ROUGH_CONSTANT_VALUE" />
</Match>
<!-- the following expositions of internal representation are intentional and documented -->
<Match>
<Class name="org.apache.commons.math3.stat.regression.RegressionResults"/>