aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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