diff options
author | Emil Lundberg <emil@emlun.se> | 2019-01-10 04:32:15 +0100 |
---|---|---|
committer | Emil Lundberg <emil@emlun.se> | 2019-01-13 02:25:26 +0100 |
commit | bbaa932c11dbe70bb14ec49434df9ef5196b04cc (patch) | |
tree | cbdf0b6d24da4429f148a874b107f3c6f0e7661d /src/core/lombok | |
parent | 223a3fdb97ce67247b03a2537f53600fa6f2c383 (diff) | |
download | lombok-bbaa932c11dbe70bb14ec49434df9ef5196b04cc.tar.gz lombok-bbaa932c11dbe70bb14ec49434df9ef5196b04cc.tar.bz2 lombok-bbaa932c11dbe70bb14ec49434df9ef5196b04cc.zip |
Replace for-int with for-each
Diffstat (limited to 'src/core/lombok')
-rw-r--r-- | src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java b/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java index d3db63ff..d4becda7 100644 --- a/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java +++ b/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java @@ -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); |