spotbugs exclusions for AccurateMath
<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 -->
