From 89b788a71d40be9bd4e63bbc0215201392b37b14 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 7 Nov 2023 16:51:18 +0000 Subject: [PATCH 1/2] Bump spotbugs.version from 4.7.3 to 4.8.1 Bumps `spotbugs.version` from 4.7.3 to 4.8.1. Updates `com.github.spotbugs:spotbugs-annotations` from 4.7.3 to 4.8.1 - [Release notes](https://github.com/spotbugs/spotbugs/releases) - [Changelog](https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md) - [Commits](https://github.com/spotbugs/spotbugs/compare/4.7.3...4.8.1) Updates `com.github.spotbugs:spotbugs` from 4.7.3 to 4.8.1 - [Release notes](https://github.com/spotbugs/spotbugs/releases) - [Changelog](https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md) - [Commits](https://github.com/spotbugs/spotbugs/compare/4.7.3...4.8.1) --- updated-dependencies: - dependency-name: com.github.spotbugs:spotbugs-annotations dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: com.github.spotbugs:spotbugs dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2784582c..d0f8495f 100644 --- a/pom.xml +++ b/pom.xml @@ -56,7 +56,7 @@ ${project.groupId}.codingstyle - 4.7.3 + 4.8.1 3.13.0 2.11.0 1.3.2 From c0c4813f6d36990ca45a97b177b597bb2117ae81 Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Thu, 16 Nov 2023 19:15:18 +0100 Subject: [PATCH 2/2] Fix SpotBugs warning. --- src/main/java/edu/hm/hafner/util/ResourceExtractor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/edu/hm/hafner/util/ResourceExtractor.java b/src/main/java/edu/hm/hafner/util/ResourceExtractor.java index 197a0596..f949aa78 100644 --- a/src/main/java/edu/hm/hafner/util/ResourceExtractor.java +++ b/src/main/java/edu/hm/hafner/util/ResourceExtractor.java @@ -22,6 +22,8 @@ import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; + /** * A proxy for resources. Extracts a given collection of files from the classpath and copies them to a target path. * @@ -42,7 +44,7 @@ public ResourceExtractor(final Class targetClass) { this(targetClass, targetClass.getProtectionDomain()); } - @VisibleForTesting + @VisibleForTesting @SuppressFBWarnings("CT_CONSTRUCTOR_THROW") ResourceExtractor(final Class targetClass, final ProtectionDomain protectionDomain) { CodeSource codeSource = protectionDomain.getCodeSource(); if (codeSource == null) {