diff --git a/src/main/java/edu/hm/hafner/util/ResourceExtractor.java b/src/main/java/edu/hm/hafner/util/ResourceExtractor.java index f949aa78..197a0596 100644 --- a/src/main/java/edu/hm/hafner/util/ResourceExtractor.java +++ b/src/main/java/edu/hm/hafner/util/ResourceExtractor.java @@ -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. * @@ -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) {