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-numbers.git

commit e2500141d22a1a1e151f2c67b90a3e2939a33d6c
Author: Alex Herbert <aherb...@apache.org>
AuthorDate: Wed Oct 20 22:57:43 2021 +0100

    Exclude spot bugs false positives
---
 .../resources/spotbugs/spotbugs-exclude-filter.xml    | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/spotbugs/spotbugs-exclude-filter.xml 
b/src/main/resources/spotbugs/spotbugs-exclude-filter.xml
index c3012e8..7a34ed9 100644
--- a/src/main/resources/spotbugs/spotbugs-exclude-filter.xml
+++ b/src/main/resources/spotbugs/spotbugs-exclude-filter.xml
@@ -43,9 +43,24 @@
   </Match>
 
   <Match>
-    <!-- Benchmark state classes can expose internal representations -->
-    <Class name="~org.apache.commons.numbers.examples.jmh..*Performance.*"/>
+    <Or>
+      <!-- Benchmark state classes can expose internal representations -->
+      <Class name="~org.apache.commons.numbers.examples.jmh..*Performance.*"/>
+      <!-- False positive exposure of immutable field. -->
+      <Class name="org.apache.commons.numbers.field.FP64Field"/>
+      <Class name="org.apache.commons.numbers.field.FP64"/>
+    </Or>
     <BugPattern name="EI_EXPOSE_REP"/>
   </Match>
 
+  <Match>
+    <Or>
+      <!-- False positive exposure of immutable field. -->
+      <Class name="org.apache.commons.numbers.field.FP64Field"/>
+      <Class name="org.apache.commons.numbers.field.FractionField"/>
+      <Class name="org.apache.commons.numbers.field.BigFractionField"/>
+    </Or>
+    <BugPattern name="MS_EXPOSE_REP"/>
+  </Match>
+
 </FindBugsFilter>

Reply via email to