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 10:34:38 +01:00
parent f13954235f
commit 93f8d0e237
1 changed files with 7 additions and 0 deletions

View File

@ -135,6 +135,13 @@
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>
<!-- Spurious: Findbugs confused by FastMath.PI - 1.0e-10 -->
<Match>
<Class name="org.apache.commons.math4.geometry.euclidean.threed.Plane" />
<Method name="isSimilarTo" params="org.apache.commons.math4.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.math4.stat.regression.RegressionResults"/>