aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/after-delombok/LoggerJBossLog.java12
-rw-r--r--test/transform/resource/after-ecj/LoggerJBossLog.java23
-rw-r--r--test/transform/resource/before/LoggerJBossLog.java12
3 files changed, 47 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/LoggerJBossLog.java b/test/transform/resource/after-delombok/LoggerJBossLog.java
index 5fd98aa6..1f2a240f 100644
--- a/test/transform/resource/after-delombok/LoggerJBossLog.java
+++ b/test/transform/resource/after-delombok/LoggerJBossLog.java
@@ -12,6 +12,18 @@ class LoggerJBossLogOuter {
private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(Inner.class);
}
}
+enum LoggerJBossLogWithEnum {
+ CONSTANT;
+ @java.lang.SuppressWarnings("all")
+ private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(LoggerJBossLogWithEnum.class);
+}
+class LoggerJBossLogWithInnerEnum {
+ enum Inner {
+ CONSTANT;
+ @java.lang.SuppressWarnings("all")
+ private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(Inner.class);
+ }
+}
class LoggerJBossLogWithDifferentLoggerName {
@java.lang.SuppressWarnings("all")
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/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 {
}