diff options
author | varkart <44122128+varkart@users.noreply.github.com> | 2022-02-17 12:52:48 -0500 |
---|---|---|
committer | varkart <44122128+varkart@users.noreply.github.com> | 2022-02-17 12:52:48 -0500 |
commit | 800c95dcb1617626c4563211e7f90a71f17206a0 (patch) | |
tree | b8671db0d8a04fa218ea28a7e36379d138e07993 /src | |
parent | 560ded50127b12bd8168f8ae2bada47253f15bc8 (diff) | |
download | lombok-800c95dcb1617626c4563211e7f90a71f17206a0.tar.gz lombok-800c95dcb1617626c4563211e7f90a71f17206a0.tar.bz2 lombok-800c95dcb1617626c4563211e7f90a71f17206a0.zip |
[fixes #2990, #3069] allow logging on enums
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleLog.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |