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 83b0eba9db7da0f11fa9affd7205150f24c131b8 Author: aherbert <aherb...@apache.org> AuthorDate: Wed Oct 13 14:09:08 2021 +0100 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. --- pom.xml | 2 +- src/main/resources/spotbugs/spotbugs-exclude-filter.xml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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>