[bugfix] builder.default with the old lombok.experimental.Builder annotation only worked in javac, not eclipse.

This commit is contained in:
Reinier Zwitserloot committed 2018-02-07 00:49:41 +01:00
1 parent 45967c522e
commit 1853b71c05
1 file changed
+1 -1
@@ -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.");
}
}