spotbugs exclusions for AccurateMath

This commit is contained in:
aherbert 2021-06-09 16:23:31 +01:00
parent 9f92370627
commit 1d51a0f68e
1 changed files with 11 additions and 1 deletions

View File

@ -42,11 +42,21 @@
<BugPattern name="FE_FLOATING_POINT_EQUALITY"/>
</Match>
<Match>
<!-- Benchmark state classes can expose internal representations -->
<Class name="org.apache.commons.math4.neuralnet.twod.NeuronSquareMesh2D"/>
<Method name="createLinks"/>
<BugPattern name="SF_SWITCH_FALLTHROUGH"/>
</Match>
<Match>
<!-- The constant is inlined resulting in a dead-local-store error -->
<Class name="org.apache.commons.math4.legacy.core.jdkmath.AccurateMath"/>
<Method name="atan"/>
<BugPattern name="DLS_DEAD_LOCAL_STORE"/>
</Match>
<Match>
<!-- The constant is intentionally close to but not exactly pi/2 -->
<Class name="org.apache.commons.math4.legacy.core.jdkmath.AccurateMath$CodyWaite"/>
<BugPattern name="CNT_ROUGH_CONSTANT_VALUE"/>
</Match>
<Match>
<!-- Benchmark state classes can expose internal representations -->