You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2021/06/09 15:54:56 UTC
[commons-math] 01/09: spotbugs exclusions for AccurateMath
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git
commit 1d51a0f68ee84ef11f4adbd58560e89acf762a62
Author: aherbert <ah...@apache.org>
AuthorDate: Wed Jun 9 16:23:31 2021 +0100
spotbugs exclusions for AccurateMath
---
src/main/resources/spotbugs/spotbugs-exclude-filter.xml | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/main/resources/spotbugs/spotbugs-exclude-filter.xml b/src/main/resources/spotbugs/spotbugs-exclude-filter.xml
index ce34778..7337a51 100644
--- a/src/main/resources/spotbugs/spotbugs-exclude-filter.xml
+++ b/src/main/resources/spotbugs/spotbugs-exclude-filter.xml
@@ -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 -->