diff --git a/pom.xml b/pom.xml index a0e17fa04..a27a40795 100644 --- a/pom.xml +++ b/pom.xml @@ -57,6 +57,9 @@ 4.8.2.0 Max + + + ConstructorThrow,FindReturnRef Low false diff --git a/src/main/java/org/jvnet/hudson/plugins/platformlabeler/LsbRelease.java b/src/main/java/org/jvnet/hudson/plugins/platformlabeler/LsbRelease.java index f2b952784..e5d4bf80b 100644 --- a/src/main/java/org/jvnet/hudson/plugins/platformlabeler/LsbRelease.java +++ b/src/main/java/org/jvnet/hudson/plugins/platformlabeler/LsbRelease.java @@ -25,7 +25,6 @@ package org.jvnet.hudson.plugins.platformlabeler; import edu.umd.cs.findbugs.annotations.NonNull; -import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; @@ -81,7 +80,6 @@ public LsbRelease() { } /** Read file to assign distributor ID and release. Package protected for tests. */ - @SuppressFBWarnings(value = "CT_CONSTRUCTOR_THROW", justification = "Finalizer attack not viable") LsbRelease(@NonNull File lsbReleaseFile) throws IOException { Map newProps = new HashMap<>(); try (FileInputStream stream = new FileInputStream(lsbReleaseFile)) { diff --git a/src/main/java/org/jvnet/hudson/plugins/platformlabeler/WindowsRelease.java b/src/main/java/org/jvnet/hudson/plugins/platformlabeler/WindowsRelease.java index a720e5032..f2e84beff 100644 --- a/src/main/java/org/jvnet/hudson/plugins/platformlabeler/WindowsRelease.java +++ b/src/main/java/org/jvnet/hudson/plugins/platformlabeler/WindowsRelease.java @@ -25,7 +25,6 @@ package org.jvnet.hudson.plugins.platformlabeler; import edu.umd.cs.findbugs.annotations.NonNull; -import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; @@ -64,7 +63,6 @@ public WindowsRelease() { } /** Read file to assign distributor ID and release. Package protected for tests. */ - @SuppressFBWarnings(value = "CT_CONSTRUCTOR_THROW", justification = "Finalizer attack not viable") WindowsRelease(File windowsReleaseFile) throws IOException { Map newProps = new HashMap<>(); try (FileInputStream stream = new FileInputStream(windowsReleaseFile)) {