diff options
author | Emil Lundberg <emil@emlun.se> | 2019-01-13 02:25:25 +0100 |
---|---|---|
committer | Emil Lundberg <emil@emlun.se> | 2019-01-13 02:25:25 +0100 |
commit | 130c115eaf07ae9183f95c861ebb0c4011c74774 (patch) | |
tree | c6abc1ca66f5904789e6b78f80a6cfe582add694 /src/core/lombok | |
parent | 36e6e56a93b783b3847d53e998c8e124475d8053 (diff) | |
download | lombok-130c115eaf07ae9183f95c861ebb0c4011c74774.tar.gz lombok-130c115eaf07ae9183f95c861ebb0c4011c74774.tar.bz2 lombok-130c115eaf07ae9183f95c861ebb0c4011c74774.zip |
Restore comments describing generated code
Diffstat (limited to 'src/core/lombok')
-rw-r--r-- | src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java index f9a95095..b1e34d47 100644 --- a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java +++ b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java @@ -131,7 +131,10 @@ public class JavacJavaUtilMapSingularizer extends JavacJavaUtilSingularizer { statements.append(createConstructBuilderVarIfNeeded(maker, data, builderType, true, source)); Name keyName = builderType.toName(data.getSingularName().toString() + "Key"); Name valueName = builderType.toName(data.getSingularName().toString() + "Value"); + + /* Generates: this.pluralname$key.add(singularnameKey); */ statements.append(generateSingularMethodAddStatement(maker, builderType, keyName, data.getPluralName() + "$key")); + /* Generates: this.pluralname$value.add(singularnameValue); */ statements.append(generateSingularMethodAddStatement(maker, builderType, valueName, data.getPluralName() + "$value")); if (returnStatement != null) statements.append(returnStatement); |