diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-07-03 05:00:28 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-07-03 05:42:34 +0200 |
commit | 7472672f164460cb8fb45ce941b685f358435374 (patch) | |
tree | b95c8230d88861376059d20eecc3c53ea53f9f4f /src/core/lombok/javac | |
parent | 3987f54b8321ae666cb1c774aef5986df05bf4ad (diff) | |
download | lombok-7472672f164460cb8fb45ce941b685f358435374.tar.gz lombok-7472672f164460cb8fb45ce941b685f358435374.tar.bz2 lombok-7472672f164460cb8fb45ce941b685f358435374.zip |
[issue #1347] When lombok generates constructors, it should call the `@Builder.Default` static method instead of initializing to null/0/false. This does that, for ecj.
Diffstat (limited to 'src/core/lombok/javac')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleBuilder.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lombok/javac/handlers/HandleBuilder.java b/src/core/lombok/javac/handlers/HandleBuilder.java index fa887974..bb495fbc 100644 --- a/src/core/lombok/javac/handlers/HandleBuilder.java +++ b/src/core/lombok/javac/handlers/HandleBuilder.java @@ -155,11 +155,13 @@ public class HandleBuilder extends JavacAnnotationHandler<Builder> { if (bfd.singularData != null && isDefault != null) { isDefault.addError("@Builder.Default and @Singular cannot be mixed."); + findAnnotation(Builder.Default.class, fieldNode, true); isDefault = null; } if (fd.init == null && isDefault != null) { isDefault.addWarning("@Builder.Default requires an initializing expression (' = something;')."); + findAnnotation(Builder.Default.class, fieldNode, true); isDefault = null; } |