Skip to content

Commit 37a5e55

Browse files
committed
Spotbugs upgrade to 4.6.0.0 for JDK 17
1 parent ee97aeb commit 37a5e55

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Measurement protocol to collect usage information from a Java application.
9999
<org.jacoco.version>0.8.7</org.jacoco.version>
100100
<org.junit.bom.version>5.7.0-M1</org.junit.bom.version>
101101
<pmd.version>6.26.0</pmd.version>
102-
<spotbugs.version>4.0.4</spotbugs.version>
102+
<spotbugs.version>4.6.0.0</spotbugs.version>
103103
<!-- Maven plugins -->
104104
<build-helper-maven-plugin.version>3.2.0</build-helper-maven-plugin.version>
105105
<formatter-maven-plugin.version>2.12.1</formatter-maven-plugin.version>

src/conf/spotbugs/spotbugs-exclude-filter.xml

+7
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,11 @@
3636
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3737
xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd">
3838

39+
<Match>
40+
<!-- False positive introduced in v4.6.0.0. The returned object is thread safe. -->
41+
<Class name="uk.ac.sussex.gdsc.analytics.parameters.CacheBusterParameter"/>
42+
<Method name="getDefaultInstance"/>
43+
<BugPattern name="MS_EXPOSE_REP"/>
44+
</Match>
45+
3946
</FindBugsFilter>

0 commit comments

Comments
 (0)