aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2018-07-25 21:41:17 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2018-07-25 21:41:17 +0200
commit5ec61bb62d3dd2d9509ade090e750dd43e36c0f3 (patch)
tree3658e9ba1242869dcd98b06a47946b03f05ff8a6 /src/core/lombok/javac
parent111d0a5f16667824d0a73b733624e6deffe19a0e (diff)
downloadlombok-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.
Diffstat (limited to 'src/core/lombok/javac')
-rw-r--r--src/core/lombok/javac/handlers/HandleBuilder.java2
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.