Use parenthesis with single-arg lambdas
Use regular expression search/replace to ensure all single-arg lambdas have parenthesis. This aligns with the style used in Spring Boot and ensure that single-arg and multi-arg lambdas are consistent. Issue gh-8945
This commit is contained in:
@@ -9,7 +9,7 @@ import org.gradle.api.Project;
|
||||
public class GlobalLockPlugin implements Plugin<Project> {
|
||||
@Override
|
||||
public void apply(Project project) {
|
||||
project.getTasks().register("writeLocks", GlobalLockTask.class, writeAll -> {
|
||||
project.getTasks().register("writeLocks", GlobalLockTask.class, (writeAll) -> {
|
||||
writeAll.setDescription("Writes the locks for all projects");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import org.gradle.api.Project;
|
||||
public class TrangPlugin implements Plugin<Project> {
|
||||
@Override
|
||||
public void apply(Project project) {
|
||||
project.getTasks().register("rncToXsd", RncToXsd.class, rncToXsd -> {
|
||||
project.getTasks().register("rncToXsd", RncToXsd.class, (rncToXsd) -> {
|
||||
rncToXsd.setDescription("Converts .rnc to .xsd");
|
||||
rncToXsd.setGroup("Build");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user