Deprecate Util#join(Collection, String) in favor of String#join(CharSequence, Iterable) (#5467)

This commit is contained in:
Basil Crow authored and GitHub committed 2021-05-09 08:08:59 +01:00
1 parent dd16cbba36
commit c904989067
15 files changed
+20 -23

No files matched your search

+1 -1
View File
@@ -499,7 +499,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
protected void reactOnCycle(PluginWrapper q, List<PluginWrapper> cycle)
throws hudson.util.CyclicGraphDetector.CycleDetectedException {
LOGGER.log(Level.SEVERE, "found cycle in plugin dependencies: (root="+q+", deactivating all involved) "+Util.join(cycle," -> "));
LOGGER.log(Level.SEVERE, "found cycle in plugin dependencies: (root=" + q + ", deactivating all involved) " + cycle.stream().map(Object::toString).collect(Collectors.joining(" -> ")));
for (PluginWrapper pluginWrapper : cycle) {
pluginWrapper.setHasCycleDependency(true);
failedPlugins.add(new FailedPlugin(pluginWrapper.getShortName(), new CycleDetectedException(cycle)));