mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-07 09:06:03 +00:00
[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
This commit is contained in:
1 parent
26ff8889f4
commit
297e4e3d85
1 file changed
+3
@@ -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<URL> findResources(String name) throws IOException {
|
||||
HashSet<URL> result = new HashSet<URL>();
|
||||
|
||||
|
||||
Reference in new issue
Block a user