diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-02-07 00:49:41 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-02-07 00:49:41 +0100 |
commit | 1853b71c05ea083b5e103611a617a4d4b7d1c074 (patch) | |
tree | e1526b3970373c314fbd0a416ffa9ed4d9d8b4e3 /src | |
parent | 45967c522eca156bf0eeae14ebd9f466d23bd470 (diff) | |
download | lombok-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.java | 2 |
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."); } } |