Clarify lambda code block methods
This commit is contained in:
@@ -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(")");
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user