Skip to content

Commit d09679e

Browse files
authored
Upgrade SpotBugs to 4.7.0 (#436)
Upgrades Spotbugs from 4.4.2 to 4.7.0. This fixes SecurityManager deprecation warnings when using Java 17. For release notes, see: https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md#470---2022-04-14 Signed-off-by: Wouter Born <github@maindrain.net>
1 parent 62562eb commit d09679e

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/maven-plugin.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ Parameters:
117117
| **spotbugsRuleset** | String | Relative path to the XML that specifies the bug detectors which should be run. If not set the default file will be used|
118118
| **spotbugsInclude** | String | Relative path to the XML that specifies the bug instances that will be included in the report. If not set the default file will be used|
119119
| **spotbugsExclude** | String | Relative path to the XML that specifies the bug instances that will be excluded from the report. If not set the default file will be used|
120-
| **maven.spotbugs.version** | String | The version of the spotbugs-maven-plugin that will be used (default value is **4.4.2.2**) |
121-
| **spotbugs.version** | String | The version of SpotBugs that will be used (default value is **4.4.2**) |
120+
| **maven.spotbugs.version** | String | The version of the spotbugs-maven-plugin that will be used (default value is **4.6.0.0**) |
121+
| **spotbugs.version** | String | The version of SpotBugs that will be used (default value is **4.7.0**) |
122122
| **spotbugsPlugins** | List<Dependency> | A list with artifacts that contain additional detectors/patterns for SpotBugs |
123123
| **findbugs.slf4j.version** | String | The version of the findbugs-slf4j plugin that will be used (default value is **1.5.0**)|
124124

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<maven.resources.version>2.4</maven.resources.version>
7171
<pmd.version>6.39.0</pmd.version>
7272
<checkstyle.version>8.45.1</checkstyle.version>
73-
<spotbugs.version>4.4.2</spotbugs.version>
73+
<spotbugs.version>4.7.0</spotbugs.version>
7474
<maven.core.version>3.6.0</maven.core.version>
7575
<maven.plugin.api.version>3.6.0</maven.plugin.api.version>
7676
<maven.plugin.annotations.version>3.6.0</maven.plugin.annotations.version>

sat-plugin/src/main/java/org/openhab/tools/analysis/tools/SpotBugsChecker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public class SpotBugsChecker extends AbstractChecker {
8383
/**
8484
* The version of the spotbugs-maven-plugin that will be used
8585
*/
86-
@Parameter(property = "maven.spotbugs.version", defaultValue = "4.4.2.2")
86+
@Parameter(property = "maven.spotbugs.version", defaultValue = "4.6.0.0")
8787
private String spotbugsMavenPluginVersion;
8888

8989
/**
@@ -95,7 +95,7 @@ public class SpotBugsChecker extends AbstractChecker {
9595
/**
9696
* The version of the spotbugs that will be used
9797
*/
98-
@Parameter(property = "spotbugs.version", defaultValue = "4.4.2")
98+
@Parameter(property = "spotbugs.version", defaultValue = "4.7.0")
9999
private String spotBugsVersion;
100100

101101
/**

0 commit comments

Comments
 (0)