Updated SpotBugs 3.1.8 to 4.3.0 to allow building on JDK 17.
A generic exclusion has been added to allow the build to pass.
diff --git a/pom.xml b/pom.xml
index a80f258..602ca68 100644
--- a/pom.xml
+++ b/pom.xml
@@ -84,7 +84,7 @@
<commons.jxr.version>2.5</commons.jxr.version>
<!-- Override CP 47 -->
- <commons.spotbugs.version>3.1.8</commons.spotbugs.version>
+ <commons.spotbugs.version>4.3.0</commons.spotbugs.version>
<commons.site.path>math</commons.site.path>
<commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-math</commons.scmPubUrl>
diff --git a/src/main/resources/spotbugs/spotbugs-exclude-filter.xml b/src/main/resources/spotbugs/spotbugs-exclude-filter.xml
index 7337a51..4ee71d2 100644
--- a/src/main/resources/spotbugs/spotbugs-exclude-filter.xml
+++ b/src/main/resources/spotbugs/spotbugs-exclude-filter.xml
@@ -64,4 +64,13 @@
<BugPattern name="EI_EXPOSE_REP"/>
</Match>
+ <!-- Disable checks for exposure of internal references.
+ TODO: Revise this to use more targeted exclusions. -->
+ <Match>
+ <Or>
+ <BugPattern name="EI_EXPOSE_REP"/>
+ <BugPattern name="EI_EXPOSE_REP2"/>
+ </Or>
+ </Match>
+
</FindBugsFilter>