Skip to content

Commit

Permalink
[fixes projectlombok#2990, projectlombok#3069] jboss logger enum test…
Browse files Browse the repository at this point in the history
… cases
  • Loading branch information
varkart committed Feb 17, 2022
1 parent 13fbad0 commit 082ac2c
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/transform/resource/after-delombok/LoggerJBossLog.java
Expand Up @@ -12,6 +12,18 @@ static class Inner {
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")
Expand Down
23 changes: 23 additions & 0 deletions test/transform/resource/after-ecj/LoggerJBossLog.java
Expand Up @@ -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>() {
Expand Down
12 changes: 12 additions & 0 deletions test/transform/resource/before/LoggerJBossLog.java
Expand Up @@ -15,6 +15,18 @@ static class Inner {
}
}

@JBossLog
enum LoggerJBossLogWithEnum {
CONSTANT;
}

class LoggerJBossLogWithInnerEnum {
@JBossLog
enum Inner {
CONSTANT;
}
}

@JBossLog(topic="DifferentLogger")
class LoggerJBossLogWithDifferentLoggerName {
}
Expand Down

0 comments on commit 082ac2c

Please sign in to comment.