mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 14:16:39 +00:00
[bugfix] builder.default with the old lombok.experimental.Builder annotation only worked in javac, not eclipse.
This commit is contained in:
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.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user