From 800c95dcb1617626c4563211e7f90a71f17206a0 Mon Sep 17 00:00:00 2001 From: varkart <44122128+varkart@users.noreply.github.com> Date: Thu, 17 Feb 2022 12:52:48 -0500 Subject: [fixes #2990, #3069] allow logging on enums --- src/core/lombok/javac/handlers/HandleLog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/lombok/javac/handlers/HandleLog.java b/src/core/lombok/javac/handlers/HandleLog.java index 957f5581..df3908dc 100644 --- a/src/core/lombok/javac/handlers/HandleLog.java +++ b/src/core/lombok/javac/handlers/HandleLog.java @@ -80,7 +80,7 @@ public class HandleLog { return; } - if (useStatic && !isStaticAllowed(typeNode)) { + if (!typeNode.isEnumType() && useStatic && !isStaticAllowed(typeNode)) { annotationNode.addError(framework.getAnnotationAsString() + " is not supported on non-static nested classes."); return; } -- cgit