Reduce usages of com.google.common.collect in favor of native Java functionality (#5464)

* Reduce usages of `com.google.common.collect` in favor of native Java functionality

* Copy original list to preserve original behavior
This commit is contained in:
Basil Crow authored and GitHub committed 2021-05-10 11:40:21 +02:00
1 parent 60b62dc288
commit ccaabe5adc
22 files changed
+82 -73

No files matched your search

+1 -2
View File
@@ -24,7 +24,6 @@
*/
package hudson;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Sets;
import hudson.PluginManager.PluginInstanceStore;
import hudson.model.AdministrativeMonitor;
@@ -220,7 +219,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
* The core can depend on a plugin if it is bundled. Sometimes it's the only thing that
* depends on the plugin e.g. UI support library bundle plugin.
*/
private static Set<String> CORE_ONLY_DEPENDANT = ImmutableSet.copyOf(Collections.singletonList("jenkins-core"));
private static Set<String> CORE_ONLY_DEPENDANT = Collections.singleton("jenkins-core");
/**
* Set the list of components that depend on this plugin.