Polish code to use method references when possible

This commit is contained in:
Phillip Webb
2022-05-17 19:03:43 -07:00
parent 50e27333d2
commit 350d27fe50
15 changed files with 39 additions and 44 deletions

View File

@@ -91,7 +91,7 @@ class WarPluginAction implements PluginApplicationAction {
.convention(resolveMainClassName.flatMap((resolver) -> manifestStartClass.isPresent()
? manifestStartClass : resolveMainClassName.get().readMainClassName()));
});
bootWarProvider.map((bootWar) -> bootWar.getClasspath());
bootWarProvider.map(War::getClasspath);
return bootWarProvider;
}