Clarify lambda code block methods

This commit is contained in:
Stephane Nicoll
2022-04-26 15:13:43 +02:00
parent f64fc4baff
commit 5378572b00
5 changed files with 15 additions and 15 deletions

View File

@@ -421,7 +421,7 @@ public class BeanRegistrationBeanFactoryContribution implements BeanFactoryContr
if (statements.isEmpty()) {
return;
}
code.add(statements.toLambdaBody(".customize((" + bdVariable + ") ->"));
code.add(statements.toLambda(".customize((" + bdVariable + ") ->"));
code.add(")");
}

View File

@@ -234,7 +234,7 @@ public class InjectionGenerator {
code.add(".resolve(beanFactory, false).ifResolved(");
}
code.add(this.fieldGenerator.generateSetValue("bean", injectionPoint,
CodeBlock.of("attributes.get(0)")).toLambdaBody("(attributes) ->"));
CodeBlock.of("attributes.get(0)")).toLambda("(attributes) ->"));
code.add(")").unindent().unindent();
return code.build();
}