未验证 提交 86502ae4 编写于 作者: O Oleg Nenashev 提交者: GitHub

Merge pull request #3649 from oleg-nenashev/java11/JENKINS-53793-DMI-COLLECTION-OF-URLS

[JENKINS-53793] - Suppress DMI_COLLECTION_OF_URLS in ClassicPluginStrategy
......@@ -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>();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册