aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorvarkart <44122128+varkart@users.noreply.github.com>2022-02-17 13:07:14 -0500
committervarkart <44122128+varkart@users.noreply.github.com>2022-02-17 13:07:14 -0500
commit3679fcee8c6023904eb87821d0e3b7ca4f4f74fb (patch)
tree9766835fb4dadeb69b43804a0352ea6cd1ce15f7 /test
parent401a5bf7f2937f815bdfd47ccda5d6b97363cade (diff)
downloadlombok-3679fcee8c6023904eb87821d0e3b7ca4f4f74fb.tar.gz
lombok-3679fcee8c6023904eb87821d0e3b7ca4f4f74fb.tar.bz2
lombok-3679fcee8c6023904eb87821d0e3b7ca4f4f74fb.zip
[fixes #2990, #3069] slf4j logger enum test cases
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/after-delombok/LoggerSlf4j.java12
-rw-r--r--test/transform/resource/after-ecj/LoggerSlf4j.java23
-rw-r--r--test/transform/resource/before/LoggerSlf4j.java12
3 files changed, 47 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/LoggerSlf4j.java b/test/transform/resource/after-delombok/LoggerSlf4j.java
index 152c8708..099a65ad 100644
--- a/test/transform/resource/after-delombok/LoggerSlf4j.java
+++ b/test/transform/resource/after-delombok/LoggerSlf4j.java
@@ -6,6 +6,18 @@ class LoggerSlf4jWithImport {
@java.lang.SuppressWarnings("all")
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4jWithImport.class);
}
+enum LoggerSlf4jWithEnum {
+ CONSTANT;
+ @java.lang.SuppressWarnings("all")
+ private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4jWithEnum.class);
+}
+class LoggerSlf4jWithInnerEnum {
+ enum Inner {
+ CONSTANT;
+ @java.lang.SuppressWarnings("all")
+ private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(Inner.class);
+ }
+}
class LoggerSlf4jOuter {
static class Inner {
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-ecj/LoggerSlf4j.java b/test/transform/resource/after-ecj/LoggerSlf4j.java
index 286d023b..85e49186 100644
--- a/test/transform/resource/after-ecj/LoggerSlf4j.java
+++ b/test/transform/resource/after-ecj/LoggerSlf4j.java
@@ -15,6 +15,29 @@ import lombok.extern.slf4j.Slf4j;
super();
}
}
+@Slf4j enum LoggerSlf4jWithEnum {
+ CONSTANT(),
+ private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4jWithEnum.class);
+ <clinit>() {
+ }
+ LoggerSlf4jWithEnum() {
+ super();
+ }
+}
+class LoggerSlf4jWithInnerEnum {
+ @Slf4j enum Inner {
+ CONSTANT(),
+ private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(Inner.class);
+ <clinit>() {
+ }
+ Inner() {
+ super();
+ }
+ }
+ LoggerSlf4jWithInnerEnum() {
+ super();
+ }
+}
class LoggerSlf4jOuter {
static @lombok.extern.slf4j.Slf4j class Inner {
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(Inner.class);
diff --git a/test/transform/resource/before/LoggerSlf4j.java b/test/transform/resource/before/LoggerSlf4j.java
index c59db4ee..f6310bf5 100644
--- a/test/transform/resource/before/LoggerSlf4j.java
+++ b/test/transform/resource/before/LoggerSlf4j.java
@@ -8,6 +8,18 @@ class LoggerSlf4j {
class LoggerSlf4jWithImport {
}
+@Slf4j
+enum LoggerSlf4jWithEnum {
+ CONSTANT;
+}
+
+class LoggerSlf4jWithInnerEnum {
+ @Slf4j
+ enum Inner {
+ CONSTANT;
+ }
+}
+
class LoggerSlf4jOuter {
@lombok.extern.slf4j.Slf4j
static class Inner {