aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource
diff options
context:
space:
mode:
authorvarkart <44122128+varkart@users.noreply.github.com>2022-02-17 13:06:20 -0500
committervarkart <44122128+varkart@users.noreply.github.com>2022-02-17 13:06:20 -0500
commit9967246598b32556e04bb326b5e0d415a2e3e6ae (patch)
tree2ea9bbaee524a5f6488d2a9108980238107ce1d5 /test/transform/resource
parent0f3cff22881cd2e95e9f71f71cac571d1d23be47 (diff)
downloadlombok-9967246598b32556e04bb326b5e0d415a2e3e6ae.tar.gz
lombok-9967246598b32556e04bb326b5e0d415a2e3e6ae.tar.bz2
lombok-9967246598b32556e04bb326b5e0d415a2e3e6ae.zip
[fixes #2990, #3069] log4j logger enum test cases
Diffstat (limited to 'test/transform/resource')
-rw-r--r--test/transform/resource/after-delombok/LoggerLog4j.java13
-rw-r--r--test/transform/resource/after-ecj/LoggerLog4j.java23
-rw-r--r--test/transform/resource/before/LoggerLog4j.java12
3 files changed, 48 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/LoggerLog4j.java b/test/transform/resource/after-delombok/LoggerLog4j.java
index cef83621..c07e14fa 100644
--- a/test/transform/resource/after-delombok/LoggerLog4j.java
+++ b/test/transform/resource/after-delombok/LoggerLog4j.java
@@ -15,3 +15,16 @@ class LoggerLog4jWithStaticField {
private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(LoggerLog4jWithStaticField.TOPIC);
static final String TOPIC = "StaticField";
}
+enum LoggerLog4jWithEnum {
+ CONSTANT;
+ @java.lang.SuppressWarnings("all")
+ private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(LoggerLog4jWithEnum.class);
+}
+class LoggerLog4jWithInnerEnum {
+
+ enum Inner {
+ CONSTANT;
+ @java.lang.SuppressWarnings("all")
+ private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(Inner.class);
+ }
+}
diff --git a/test/transform/resource/after-ecj/LoggerLog4j.java b/test/transform/resource/after-ecj/LoggerLog4j.java
index e7d6c813..4d67b133 100644
--- a/test/transform/resource/after-ecj/LoggerLog4j.java
+++ b/test/transform/resource/after-ecj/LoggerLog4j.java
@@ -31,4 +31,27 @@ import lombok.extern.log4j.Log4j;
LoggerLog4jWithStaticField() {
super();
}
+}
+@Log4j enum LoggerLog4jWithEnum {
+ CONSTANT(),
+ private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(LoggerLog4jWithEnum.class);
+ <clinit>() {
+ }
+ LoggerLog4jWithEnum() {
+ super();
+ }
+}
+class LoggerLog4jWithInnerEnum {
+ @Log4j enum Inner {
+ CONSTANT(),
+ private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(Inner.class);
+ <clinit>() {
+ }
+ Inner() {
+ super();
+ }
+ }
+ LoggerLog4jWithInnerEnum() {
+ super();
+ }
} \ No newline at end of file
diff --git a/test/transform/resource/before/LoggerLog4j.java b/test/transform/resource/before/LoggerLog4j.java
index b7086a05..3be24d74 100644
--- a/test/transform/resource/before/LoggerLog4j.java
+++ b/test/transform/resource/before/LoggerLog4j.java
@@ -15,4 +15,16 @@ class LoggerLog4jWithDifferentName {
@Log4j(topic=LoggerLog4jWithStaticField.TOPIC)
class LoggerLog4jWithStaticField {
static final String TOPIC = "StaticField";
+}
+
+@Log4j
+enum LoggerLog4jWithEnum {
+ CONSTANT;
+}
+
+class LoggerLog4jWithInnerEnum {
+ @Log4j
+ enum Inner {
+ CONSTANT;
+ }
} \ No newline at end of file