aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2022-03-17 21:32:31 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2022-03-17 21:32:31 +0100
commit3a4f0e08dbb82fdf93b04da2b0876563e96e13b7 (patch)
treec1acfdd0a1824908a1ca4a44a2eac0567725e2f6 /test/transform/resource/after-ecj
parent70bda546114ceccc7714bd6060d96edbcd25e3a0 (diff)
parent3679fcee8c6023904eb87821d0e3b7ca4f4f74fb (diff)
downloadlombok-3a4f0e08dbb82fdf93b04da2b0876563e96e13b7.tar.gz
lombok-3a4f0e08dbb82fdf93b04da2b0876563e96e13b7.tar.bz2
lombok-3a4f0e08dbb82fdf93b04da2b0876563e96e13b7.zip
Merge branch 'fix-enum-logging' of https://github.com/varkart/lombok into varkart-fix-enum-logging
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r--test/transform/resource/after-ecj/LoggerFlogger.java23
-rw-r--r--test/transform/resource/after-ecj/LoggerJBossLog.java23
-rw-r--r--test/transform/resource/after-ecj/LoggerJul.java23
-rw-r--r--test/transform/resource/after-ecj/LoggerLog4j.java23
-rw-r--r--test/transform/resource/after-ecj/LoggerLog4j2.java23
-rw-r--r--test/transform/resource/after-ecj/LoggerSlf4j.java23
6 files changed, 138 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/LoggerFlogger.java b/test/transform/resource/after-ecj/LoggerFlogger.java
index d0526eee..b97082ff 100644
--- a/test/transform/resource/after-ecj/LoggerFlogger.java
+++ b/test/transform/resource/after-ecj/LoggerFlogger.java
@@ -28,3 +28,26 @@ class LoggerFloggerOuter {
super();
}
}
+@Flogger enum LoggerFloggerWithEnum {
+ CONSTANT(),
+ private static final com.google.common.flogger.FluentLogger log = com.google.common.flogger.FluentLogger.forEnclosingClass();
+ <clinit>() {
+ }
+ LoggerFloggerWithEnum() {
+ super();
+ }
+}
+class LoggerFloggerWithInnerEnum {
+ @Flogger enum Inner {
+ CONSTANT(),
+ private static final com.google.common.flogger.FluentLogger log = com.google.common.flogger.FluentLogger.forEnclosingClass();
+ <clinit>() {
+ }
+ Inner() {
+ super();
+ }
+ }
+ LoggerFloggerWithInnerEnum() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/LoggerJBossLog.java b/test/transform/resource/after-ecj/LoggerJBossLog.java
index c47f6c9e..13d332a6 100644
--- a/test/transform/resource/after-ecj/LoggerJBossLog.java
+++ b/test/transform/resource/after-ecj/LoggerJBossLog.java
@@ -28,6 +28,29 @@ class LoggerJBossLogOuter {
super();
}
}
+@JBossLog enum LoggerJBossLogWithEnum {
+ CONSTANT(),
+ private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(LoggerJBossLogWithEnum.class);
+ <clinit>() {
+ }
+ LoggerJBossLogWithEnum() {
+ super();
+ }
+}
+class LoggerJBossLogWithInnerEnum {
+ @JBossLog enum Inner {
+ CONSTANT(),
+ private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(Inner.class);
+ <clinit>() {
+ }
+ Inner() {
+ super();
+ }
+ }
+ LoggerJBossLogWithInnerEnum() {
+ super();
+ }
+}
@JBossLog(topic = "DifferentLogger") class LoggerJBossLogWithDifferentLoggerName {
private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger("DifferentLogger");
<clinit>() {
diff --git a/test/transform/resource/after-ecj/LoggerJul.java b/test/transform/resource/after-ecj/LoggerJul.java
index 20cc5407..d1408245 100644
--- a/test/transform/resource/after-ecj/LoggerJul.java
+++ b/test/transform/resource/after-ecj/LoggerJul.java
@@ -31,4 +31,27 @@ import lombok.extern.java.Log;
LoggerJulWithStaticField() {
super();
}
+}
+@Log enum LoggerJulWithEnum {
+ CONSTANT(),
+ private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(LoggerJulWithEnum.class.getName());
+ <clinit>() {
+ }
+ LoggerJulWithEnum() {
+ super();
+ }
+}
+class LoggerJulWithInnerEnum {
+ @Log enum Inner {
+ CONSTANT(),
+ private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(Inner.class.getName());
+ <clinit>() {
+ }
+ Inner() {
+ super();
+ }
+ }
+ LoggerJulWithInnerEnum() {
+ super();
+ }
} \ No newline at end of file
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/after-ecj/LoggerLog4j2.java b/test/transform/resource/after-ecj/LoggerLog4j2.java
index 88def98d..72d4ff5f 100644
--- a/test/transform/resource/after-ecj/LoggerLog4j2.java
+++ b/test/transform/resource/after-ecj/LoggerLog4j2.java
@@ -31,4 +31,27 @@ import lombok.extern.log4j.Log4j2;
LoggerLog4j2WithStaticField() {
super();
}
+}
+@Log4j2 enum LoggerLog4j2WithEnum {
+ CONSTANT(),
+ private static final org.apache.logging.log4j.Logger log = org.apache.logging.log4j.LogManager.getLogger(LoggerLog4j2WithEnum.class);
+ <clinit>() {
+ }
+ LoggerLog4j2WithEnum() {
+ super();
+ }
+}
+class LoggerLog4j2WithInnerEnum {
+ @Log4j2 enum Inner {
+ CONSTANT(),
+ private static final org.apache.logging.log4j.Logger log = org.apache.logging.log4j.LogManager.getLogger(Inner.class);
+ <clinit>() {
+ }
+ Inner() {
+ super();
+ }
+ }
+ LoggerLog4j2WithInnerEnum() {
+ super();
+ }
} \ No newline at end of file
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);