diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-02-08 22:53:19 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-02-08 22:53:19 +0100 |
commit | 2aff2159fcaf35c2cda4f837c5ceb65318b81db9 (patch) | |
tree | ca065af7e33a2b2220540de7dc0a01f02e9207eb /src/core/lombok/javac/handlers/HandleBuilder.java | |
parent | 855f9314d621327de3321e2e5bf230e33fb7b1dc (diff) | |
download | lombok-2aff2159fcaf35c2cda4f837c5ceb65318b81db9.tar.gz lombok-2aff2159fcaf35c2cda4f837c5ceb65318b81db9.tar.bz2 lombok-2aff2159fcaf35c2cda4f837c5ceb65318b81db9.zip |
marking generated fields in builders as generated. This seems superfluous as the entire builder class is marked as such, but it won’t be if that part is manually written but builder is supposed to fill in a few blanks.
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleBuilder.java')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleBuilder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/javac/handlers/HandleBuilder.java b/src/core/lombok/javac/handlers/HandleBuilder.java index 4f7f79d9..30fec45b 100644 --- a/src/core/lombok/javac/handlers/HandleBuilder.java +++ b/src/core/lombok/javac/handlers/HandleBuilder.java @@ -252,7 +252,7 @@ public class HandleBuilder extends JavacAnnotationHandler<Builder> { if (addCleaning) { JavacTreeMaker maker = builderType.getTreeMaker(); JCVariableDecl uncleanField = maker.VarDef(maker.Modifiers(Flags.PRIVATE), builderType.toName("$lombokUnclean"), maker.TypeIdent(CTC_BOOLEAN), null); - injectField(builderType, uncleanField); + injectFieldAndMarkGenerated(builderType, uncleanField); } if (constructorExists(builderType) == MemberExistsResult.NOT_EXISTS) { @@ -405,7 +405,7 @@ public class HandleBuilder extends JavacAnnotationHandler<Builder> { JavacTreeMaker maker = builderType.getTreeMaker(); JCModifiers mods = maker.Modifiers(Flags.PRIVATE); JCVariableDecl newField = maker.VarDef(mods, bfd.name, cloneType(maker, bfd.type, source, builderType.getContext()), null); - bfd.createdFields.add(injectField(builderType, newField)); + bfd.createdFields.add(injectFieldAndMarkGenerated(builderType, newField)); } } } |