aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2018-02-07 00:49:41 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2018-02-07 00:49:41 +0100
commit1853b71c05ea083b5e103611a617a4d4b7d1c074 (patch)
treee1526b3970373c314fbd0a416ffa9ed4d9d8b4e3 /src
parent45967c522eca156bf0eeae14ebd9f466d23bd470 (diff)
downloadlombok-1853b71c05ea083b5e103611a617a4d4b7d1c074.tar.gz
lombok-1853b71c05ea083b5e103611a617a4d4b7d1c074.tar.bz2
lombok-1853b71c05ea083b5e103611a617a4d4b7d1c074.zip
[bugfix] builder.default with the old lombok.experimental.Builder annotation only worked in javac, not eclipse.
Diffstat (limited to 'src')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleBuilderDefault.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleBuilderDefault.java b/src/core/lombok/eclipse/handlers/HandleBuilderDefault.java
index 51a23721..be2b986d 100644
--- a/src/core/lombok/eclipse/handlers/HandleBuilderDefault.java
+++ b/src/core/lombok/eclipse/handlers/HandleBuilderDefault.java
@@ -39,7 +39,7 @@ public class HandleBuilderDefault extends EclipseAnnotationHandler<Builder.Defau
EclipseNode annotatedField = annotationNode.up();
if (annotatedField.getKind() != Kind.FIELD) return;
EclipseNode classWithAnnotatedField = annotatedField.up();
- if (!hasAnnotation(Builder.class, classWithAnnotatedField)) {
+ if (!hasAnnotation(Builder.class, classWithAnnotatedField) && !hasAnnotation("lombok.experimental.Builder", classWithAnnotatedField)) {
annotationNode.addWarning("@Builder.Default requires @Builder on the class for it to mean anything.");
}
}