aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/LoggerFlogger.java12
-rw-r--r--test/transform/resource/before/LoggerFloggerRecord.java8
-rw-r--r--test/transform/resource/before/LoggerJBossLog.java12
-rw-r--r--test/transform/resource/before/LoggerJul.java12
-rw-r--r--test/transform/resource/before/LoggerLog4j.java12
-rw-r--r--test/transform/resource/before/LoggerLog4j2.java12
-rw-r--r--test/transform/resource/before/LoggerSlf4j.java12
7 files changed, 80 insertions, 0 deletions
diff --git a/test/transform/resource/before/LoggerFlogger.java b/test/transform/resource/before/LoggerFlogger.java
index b143aae9..4bdc20b0 100644
--- a/test/transform/resource/before/LoggerFlogger.java
+++ b/test/transform/resource/before/LoggerFlogger.java
@@ -14,3 +14,15 @@ class LoggerFloggerOuter {
}
}
+
+@Flogger
+enum LoggerFloggerWithEnum {
+ CONSTANT;
+}
+
+class LoggerFloggerWithInnerEnum {
+ @Flogger
+ enum Inner {
+ CONSTANT;
+ }
+}
diff --git a/test/transform/resource/before/LoggerFloggerRecord.java b/test/transform/resource/before/LoggerFloggerRecord.java
new file mode 100644
index 00000000..908704d6
--- /dev/null
+++ b/test/transform/resource/before/LoggerFloggerRecord.java
@@ -0,0 +1,8 @@
+// version 14:
+
+import lombok.extern.flogger.Flogger;
+
+class LoggerFloggerRecord {
+ @Flogger
+ record Inner(String x) {}
+}
diff --git a/test/transform/resource/before/LoggerJBossLog.java b/test/transform/resource/before/LoggerJBossLog.java
index f3480867..a26a0f7b 100644
--- a/test/transform/resource/before/LoggerJBossLog.java
+++ b/test/transform/resource/before/LoggerJBossLog.java
@@ -15,6 +15,18 @@ class LoggerJBossLogOuter {
}
}
+@JBossLog
+enum LoggerJBossLogWithEnum {
+ CONSTANT;
+}
+
+class LoggerJBossLogWithInnerEnum {
+ @JBossLog
+ enum Inner {
+ CONSTANT;
+ }
+}
+
@JBossLog(topic="DifferentLogger")
class LoggerJBossLogWithDifferentLoggerName {
}
diff --git a/test/transform/resource/before/LoggerJul.java b/test/transform/resource/before/LoggerJul.java
index 7b10d015..24fcdcde 100644
--- a/test/transform/resource/before/LoggerJul.java
+++ b/test/transform/resource/before/LoggerJul.java
@@ -15,4 +15,16 @@ class LoggerJulWithDifferentName {
@Log(topic=LoggerJulWithStaticField.TOPIC)
class LoggerJulWithStaticField {
static final String TOPIC = "StaticField";
+}
+
+@Log
+enum LoggerJulWithEnum {
+ CONSTANT;
+}
+
+class LoggerJulWithInnerEnum {
+ @Log
+ enum Inner {
+ CONSTANT;
+ }
} \ 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
diff --git a/test/transform/resource/before/LoggerLog4j2.java b/test/transform/resource/before/LoggerLog4j2.java
index 1dd48d7a..bf717cb8 100644
--- a/test/transform/resource/before/LoggerLog4j2.java
+++ b/test/transform/resource/before/LoggerLog4j2.java
@@ -16,4 +16,16 @@ class LoggerLog4j2WithDifferentName {
@Log4j2(topic=LoggerLog4j2WithStaticField.TOPIC)
class LoggerLog4j2WithStaticField {
static final String TOPIC = "StaticField";
+}
+
+@Log4j2
+enum LoggerLog4j2WithEnum {
+ CONSTANT;
+}
+
+class LoggerLog4j2WithInnerEnum {
+ @Log4j2
+ enum Inner {
+ CONSTANT;
+ }
} \ No newline at end of file
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 {