aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource
diff options
context:
space:
mode:
authorThomas Darimont <thomas.darimont@gmail.com>2016-05-06 19:14:47 +0200
committerThomas Darimont <thomas.darimont@gmail.com>2016-05-06 19:14:47 +0200
commitc0a2eecb2f6a647d9b9862681c0407043e515b51 (patch)
tree130751643656a89b61d20b19e16beec23b143df6 /test/transform/resource
parent26ad9e7f5f4de77436d3d63e4a43e8cb77621c15 (diff)
downloadlombok-c0a2eecb2f6a647d9b9862681c0407043e515b51.tar.gz
lombok-c0a2eecb2f6a647d9b9862681c0407043e515b51.tar.bz2
lombok-c0a2eecb2f6a647d9b9862681c0407043e515b51.zip
Added support for JBoss Logging v3.3.0-Final via @JBossLog [Issue #1103]
Diffstat (limited to 'test/transform/resource')
-rw-r--r--test/transform/resource/after-delombok/LoggerJBossLog.java23
-rw-r--r--test/transform/resource/after-ecj/LoggerJBossLog.java38
-rw-r--r--test/transform/resource/before/LoggerJBossLog.java20
3 files changed, 81 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/LoggerJBossLog.java b/test/transform/resource/after-delombok/LoggerJBossLog.java
new file mode 100644
index 00000000..8769f1a2
--- /dev/null
+++ b/test/transform/resource/after-delombok/LoggerJBossLog.java
@@ -0,0 +1,23 @@
+class LoggerJBossLog {
+ @java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
+ private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(LoggerJBossLog.class);
+}
+class LoggerJBossLogWithImport {
+ @java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
+ private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(LoggerJBossLogWithImport.class);
+}
+class LoggerJBossLogOuter {
+ static class Inner {
+ @java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
+ private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(Inner.class);
+ }
+}
+
+class LoggerJBossLogWithDifferentLoggerName {
+ @java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
+ private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger("DifferentLogger");
+} \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/LoggerJBossLog.java b/test/transform/resource/after-ecj/LoggerJBossLog.java
new file mode 100644
index 00000000..e5c35708
--- /dev/null
+++ b/test/transform/resource/after-ecj/LoggerJBossLog.java
@@ -0,0 +1,38 @@
+import lombok.extern.jbosslog.JBossLog;
+@lombok.extern.jbosslog.JBossLog class LoggerJBossLog {
+ private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(LoggerJBossLog.class);
+ <clinit>() {
+ }
+ LoggerJBossLog() {
+ super();
+ }
+}
+@JBossLog class LoggerJBossLogWithImport {
+ private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(LoggerJBossLogWithImport.class);
+ <clinit>() {
+ }
+ LoggerJBossLogWithImport() {
+ super();
+ }
+}
+class LoggerJBossLogOuter {
+ static @lombok.extern.jbosslog.JBossLog class Inner {
+ private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(Inner.class);
+ <clinit>() {
+ }
+ Inner() {
+ super();
+ }
+ }
+ LoggerJBossLogOuter() {
+ super();
+ }
+}
+@JBossLog(topic = "DifferentLogger") class LoggerJBossLogWithDifferentLoggerName {
+ private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger("DifferentLogger");
+ <clinit>() {
+ }
+ LoggerJBossLogWithDifferentLoggerName() {
+ super();
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/LoggerJBossLog.java b/test/transform/resource/before/LoggerJBossLog.java
new file mode 100644
index 00000000..fbd88177
--- /dev/null
+++ b/test/transform/resource/before/LoggerJBossLog.java
@@ -0,0 +1,20 @@
+import lombok.extern.jbosslog.JBossLog;
+
+@lombok.extern.jbosslog.JBossLog
+class LoggerJBossLog {
+}
+
+@JBossLog
+class LoggerJBossLogWithImport {
+}
+
+class LoggerJBossLogOuter {
+ @lombok.extern.jbosslog.JBossLog
+ static class Inner {
+
+ }
+}
+
+@JBossLog(topic="DifferentLogger")
+class LoggerJBossLogWithDifferentLoggerName {
+} \ No newline at end of file