mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-02 22:17:42 +00:00
@@ -15,4 +15,17 @@ class LoggerLog4j2WithStaticField {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
private static final org.apache.logging.log4j.Logger log = org.apache.logging.log4j.LogManager.getLogger(LoggerLog4j2WithStaticField.TOPIC);
|
||||
static final String TOPIC = "StaticField";
|
||||
}
|
||||
enum LoggerLog4j2WithEnum {
|
||||
CONSTANT;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
private static final org.apache.logging.log4j.Logger log = org.apache.logging.log4j.LogManager.getLogger(LoggerLog4j2WithEnum.class);
|
||||
}
|
||||
class LoggerLog4j2WithInnerEnum {
|
||||
|
||||
enum Inner {
|
||||
CONSTANT;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
private static final org.apache.logging.log4j.Logger log = org.apache.logging.log4j.LogManager.getLogger(Inner.class);
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user