aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse/handlers/HandleBuilder.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2018-10-15 21:50:36 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2018-10-15 21:52:47 +0200
commit73cd46fce20a2c859a6fa9b78d921ff935642223 (patch)
tree6b45c7a00c9c776f092f74122c143e08b1c76c79 /src/core/lombok/eclipse/handlers/HandleBuilder.java
parentbecb12658ef60a926d420ea83251040c28eed126 (diff)
downloadlombok-73cd46fce20a2c859a6fa9b78d921ff935642223.tar.gz
lombok-73cd46fce20a2c859a6fa9b78d921ff935642223.tar.bz2
lombok-73cd46fce20a2c859a6fa9b78d921ff935642223.zip
Fix up positions of generated nodes for eclipse `@Builder`.
Diffstat (limited to 'src/core/lombok/eclipse/handlers/HandleBuilder.java')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleBuilder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleBuilder.java b/src/core/lombok/eclipse/handlers/HandleBuilder.java
index e22b4ed2..89cf81e0 100644
--- a/src/core/lombok/eclipse/handlers/HandleBuilder.java
+++ b/src/core/lombok/eclipse/handlers/HandleBuilder.java
@@ -445,6 +445,7 @@ public class HandleBuilder extends EclipseAnnotationHandler<Builder> {
cleanDecl.declarationSourceEnd = -1;
cleanDecl.modifiers = ClassFileConstants.AccPrivate;
cleanDecl.type = TypeReference.baseTypeReference(TypeIds.T_boolean, 0);
+ cleanDecl.traverse(new SetGeneratedByVisitor(ast), (MethodScope) null);
injectFieldAndMarkGenerated(builderType, cleanDecl);
}