Skip to content

Commit

Permalink
spotbugs exclusions for AccurateMath
Browse files Browse the repository at this point in the history
  • Loading branch information
aherbert committed Jun 9, 2021
1 parent 9f92370 commit 1d51a0f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/resources/spotbugs/spotbugs-exclude-filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -->
Expand Down

0 comments on commit 1d51a0f

Please sign in to comment.