aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBalázs Németh <nbali@users.noreply.github.com>2019-03-07 17:31:05 +0100
committerGitHub <noreply@github.com>2019-03-07 17:31:05 +0100
commit7f375f3a91c8acada12d2f4fd81572ba93c2a4c8 (patch)
treed0c9b026555edb579d16cb85c6ee8d5a48a8f092
parent3ac415254f64d27003a3c5b7a232a33fd785b1f9 (diff)
downloadlombok-7f375f3a91c8acada12d2f4fd81572ba93c2a4c8.tar.gz
lombok-7f375f3a91c8acada12d2f4fd81572ba93c2a4c8.tar.bz2
lombok-7f375f3a91c8acada12d2f4fd81572ba93c2a4c8.zip
Fixed bug with 'lombok.experimental.flagUsage = ALLOW'
Fixes #2059
-rw-r--r--src/core/lombok/core/handlers/HandlerUtil.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/core/handlers/HandlerUtil.java b/src/core/lombok/core/handlers/HandlerUtil.java
index 1a92b5f6..d0092b53 100644
--- a/src/core/lombok/core/handlers/HandlerUtil.java
+++ b/src/core/lombok/core/handlers/HandlerUtil.java
@@ -372,7 +372,7 @@ public class HandlerUtil {
if (fut != null) {
String msg = "Use of " + featureName + " is flagged according to lombok configuration.";
if (fut == FlagUsageType.WARNING) node.addWarning(msg);
- else node.addError(msg);
+ else if (fut == FlagUsageType.ERROR) node.addError(msg);
}
}