Skip to content

Commit

Permalink
[fixes projectlombok#2990, projectlombok#3069] jul logger enum test c…
Browse files Browse the repository at this point in the history
…ases
  • Loading branch information
varkart committed Feb 17, 2022
1 parent 082ac2c commit 0f3cff2
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/transform/resource/after-delombok/LoggerJul.java
Expand Up @@ -14,4 +14,17 @@ class LoggerJulWithStaticField {
@java.lang.SuppressWarnings("all")
private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(LoggerJulWithStaticField.TOPIC);
static final String TOPIC = "StaticField";
}
enum LoggerJulWithEnum {
CONSTANT;
@java.lang.SuppressWarnings("all")
private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(LoggerJulWithEnum.class.getName());
}
class LoggerJulWithInnerEnum {

enum Inner {
CONSTANT;
@java.lang.SuppressWarnings("all")
private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(Inner.class.getName());
}
}
23 changes: 23 additions & 0 deletions test/transform/resource/after-ecj/LoggerJul.java
Expand Up @@ -31,4 +31,27 @@
LoggerJulWithStaticField() {
super();
}
}
@Log enum LoggerJulWithEnum {
CONSTANT(),
private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(LoggerJulWithEnum.class.getName());
<clinit>() {
}
LoggerJulWithEnum() {
super();
}
}
class LoggerJulWithInnerEnum {
@Log enum Inner {
CONSTANT(),
private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(Inner.class.getName());
<clinit>() {
}
Inner() {
super();
}
}
LoggerJulWithInnerEnum() {
super();
}
}
12 changes: 12 additions & 0 deletions test/transform/resource/before/LoggerJul.java
Expand Up @@ -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;
}
}

0 comments on commit 0f3cff2

Please sign in to comment.