Skip to content

Commit

Permalink
Exclude CT_CONSTRUCTOR_THROW SpotBugs warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Nov 25, 2023
1 parent 84f61a6 commit 19acbbf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/edu/hm/hafner/util/ResourceExtractor.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
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.
*
Expand All @@ -44,7 +42,7 @@ public ResourceExtractor(final Class<?> targetClass) {
this(targetClass, targetClass.getProtectionDomain());
}

@VisibleForTesting @SuppressFBWarnings("CT_CONSTRUCTOR_THROW")
@VisibleForTesting
ResourceExtractor(final Class<?> targetClass, final ProtectionDomain protectionDomain) {
CodeSource codeSource = protectionDomain.getCodeSource();
if (codeSource == null) {
Expand Down

0 comments on commit 19acbbf

Please sign in to comment.