mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-09 18:16:10 +00:00
Replace lambda with method reference where possible
This commit is contained in:
1 parent
2bae452ede
commit
4284c3d2ab
1 file changed
+1
-1
@@ -954,7 +954,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
|
||||
@Restricted(NoExternalUse.class)
|
||||
public void start(List<PluginWrapper> plugins) throws Exception {
|
||||
try (ACLContext context = ACL.as2(ACL.SYSTEM2)) {
|
||||
Map<String, PluginWrapper> pluginsByName = plugins.stream().collect(Collectors.toMap(p -> p.getShortName(), p -> p));
|
||||
Map<String, PluginWrapper> pluginsByName = plugins.stream().collect(Collectors.toMap(PluginWrapper::getShortName, p -> p));
|
||||
|
||||
// recalculate dependencies of plugins optionally depending the newly deployed ones.
|
||||
for (PluginWrapper depender: this.plugins) {
|
||||
|
||||
Reference in new issue
Block a user