diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-07-25 21:41:17 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-07-25 21:41:17 +0200 |
commit | 5ec61bb62d3dd2d9509ade090e750dd43e36c0f3 (patch) | |
tree | 3658e9ba1242869dcd98b06a47946b03f05ff8a6 | |
parent | 111d0a5f16667824d0a73b733624e6deffe19a0e (diff) | |
download | lombok-5ec61bb62d3dd2d9509ade090e750dd43e36c0f3.tar.gz lombok-5ec61bb62d3dd2d9509ade090e750dd43e36c0f3.tar.bz2 lombok-5ec61bb62d3dd2d9509ade090e750dd43e36c0f3.zip |
[fixes issue #1759] We removed the ‘flag usage’ check on builder instead of replacing it with the non-experimental check about 3 years ago when builder moved out of experimental. The check has now been restored.
-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 bb495fbc..f04ea8b1 100644 --- a/src/core/lombok/javac/handlers/HandleBuilder.java +++ b/src/core/lombok/javac/handlers/HandleBuilder.java @@ -99,6 +99,8 @@ public class HandleBuilder extends JavacAnnotationHandler<Builder> { } @Override public void handle(AnnotationValues<Builder> annotation, JCAnnotation ast, JavacNode annotationNode) { + handleFlagUsage(annotationNode, ConfigurationKeys.BUILDER_FLAG_USAGE, "@Builder"); + Builder builderInstance = annotation.getInstance(); // These exist just to support the 'old' lombok.experimental.Builder, which had these properties. lombok.Builder no longer has them. |