aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorvarkart <44122128+varkart@users.noreply.github.com>2022-02-17 12:52:48 -0500
committervarkart <44122128+varkart@users.noreply.github.com>2022-02-17 12:52:48 -0500
commit800c95dcb1617626c4563211e7f90a71f17206a0 (patch)
treeb8671db0d8a04fa218ea28a7e36379d138e07993 /src/core
parent560ded50127b12bd8168f8ae2bada47253f15bc8 (diff)
downloadlombok-800c95dcb1617626c4563211e7f90a71f17206a0.tar.gz
lombok-800c95dcb1617626c4563211e7f90a71f17206a0.tar.bz2
lombok-800c95dcb1617626c4563211e7f90a71f17206a0.zip
[fixes #2990, #3069] allow logging on enums
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lombok/javac/handlers/HandleLog.java2
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;
}