mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 06:17:44 +00:00
Replace for-int with for-each
This commit is contained in:
1 parent
223a3fdb97
commit
bbaa932c11
1 file changed
+2
-2
@@ -94,8 +94,8 @@ abstract class JavacGuavaSingularizer extends JavacSingularizer {
|
||||
statements.append(createConstructBuilderVarIfNeeded(maker, data, builderType, source));
|
||||
JCExpression thisDotFieldDotAdd = chainDots(builderType, "this", data.getPluralName().toString(), getAddMethodName());
|
||||
ListBuffer<JCExpression> invokeAddExprBuilder = new ListBuffer<JCExpression>();
|
||||
for (int i = 0; i < names.length; i++) {
|
||||
invokeAddExprBuilder.append(maker.Ident(names[i]));
|
||||
for (Name name : names) {
|
||||
invokeAddExprBuilder.append(maker.Ident(name));
|
||||
}
|
||||
List<JCExpression> invokeAddExpr = invokeAddExprBuilder.toList();
|
||||
JCExpression invokeAdd = maker.Apply(List.<JCExpression>nil(), thisDotFieldDotAdd, invokeAddExpr);
|
||||
|
||||
Reference in new issue
Block a user