From 297e4e3d85fa53496209f2acecf16d7a67616668 Mon Sep 17 00:00:00 2001 From: Oleg Nenashev Date: Thu, 27 Sep 2018 00:31:15 +0200 Subject: [PATCH] [JENKINS-53793] - Suppress DMI_COLLECTION_OF_URLS in ClassicPluginStrategy It starts failing FindBugs runs against Java 11. The implementation is not efficient, but it should not be a serious issue in this case --- core/src/main/java/hudson/ClassicPluginStrategy.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/hudson/ClassicPluginStrategy.java b/core/src/main/java/hudson/ClassicPluginStrategy.java index 6503d4b639..73a781f125 100644 --- a/core/src/main/java/hudson/ClassicPluginStrategy.java +++ b/core/src/main/java/hudson/ClassicPluginStrategy.java @@ -31,6 +31,7 @@ import java.io.InputStream; import java.nio.file.Files; import java.nio.file.InvalidPathException; +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import jenkins.util.AntWithFindResourceClassLoader; import jenkins.util.SystemProperties; import com.google.common.collect.Lists; @@ -798,6 +799,8 @@ public class ClassicPluginStrategy implements PluginStrategy { } @Override + @SuppressFBWarnings(value = "DMI_COLLECTION_OF_URLS", + justification = "Should not produce network overheads since the URL is local. JENKINS-53793 is a follow-up") protected Enumeration findResources(String name) throws IOException { HashSet result = new HashSet(); -- GitLab