diff options
author | Emil Lundberg <emil@emlun.se> | 2019-01-13 02:44:01 +0100 |
---|---|---|
committer | Emil Lundberg <emil@emlun.se> | 2019-01-13 02:44:01 +0100 |
commit | 125b02e84b555d36dd3427919bd02da6ef41ab66 (patch) | |
tree | 2dc4b29c79f03d3d178a79a5db20445a42e6c834 /src/core/lombok/javac/handlers | |
parent | b48af8dce8e76ffb2fb26c8edec8ceafcddb73b6 (diff) | |
download | lombok-125b02e84b555d36dd3427919bd02da6ef41ab66.tar.gz lombok-125b02e84b555d36dd3427919bd02da6ef41ab66.tar.bz2 lombok-125b02e84b555d36dd3427919bd02da6ef41ab66.zip |
Colocate statements declaration with use in Map generateSingularMethodStatements
Diffstat (limited to 'src/core/lombok/javac/handlers')
-rw-r--r-- | src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java index a35412e9..71ddd01d 100644 --- a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java +++ b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java @@ -111,10 +111,10 @@ public class JavacJavaUtilMapSingularizer extends JavacJavaUtilSingularizer { @Override protected ListBuffer<JCStatement> generateSingularMethodStatements(JavacTreeMaker maker, SingularData data, JavacNode builderType, JCTree source) { - ListBuffer<JCStatement> statements = new ListBuffer<JCStatement>(); Name keyName = builderType.toName(data.getSingularName().toString() + "Key"); Name valueName = builderType.toName(data.getSingularName().toString() + "Value"); + ListBuffer<JCStatement> statements = new ListBuffer<JCStatement>(); /* Generates: this.pluralname$key.add(singularnameKey); */ statements.append(generateSingularMethodAddStatement(maker, builderType, keyName, data.getPluralName() + "$key")); /* Generates: this.pluralname$value.add(singularnameValue); */ |