From 7f375f3a91c8acada12d2f4fd81572ba93c2a4c8 Mon Sep 17 00:00:00 2001 From: Balázs Németh Date: Thu, 7 Mar 2019 17:31:05 +0100 Subject: Fixed bug with 'lombok.experimental.flagUsage = ALLOW' Fixes #2059 --- src/core/lombok/core/handlers/HandlerUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit