aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarkart <44122128+varkart@users.noreply.github.com>2022-02-17 13:05:55 -0500
committervarkart <44122128+varkart@users.noreply.github.com>2022-02-17 13:05:55 -0500
commit0f3cff22881cd2e95e9f71f71cac571d1d23be47 (patch)
tree1d13a2bd90c0bd1204e586650b18eaa51f1352eb
parent082ac2c3755f92ef964aee43b75fbaedc248ef1a (diff)
downloadlombok-0f3cff22881cd2e95e9f71f71cac571d1d23be47.tar.gz
lombok-0f3cff22881cd2e95e9f71f71cac571d1d23be47.tar.bz2
lombok-0f3cff22881cd2e95e9f71f71cac571d1d23be47.zip
[fixes #2990, #3069] jul logger enum test cases
-rw-r--r--test/transform/resource/after-delombok/LoggerJul.java13
-rw-r--r--test/transform/resource/after-ecj/LoggerJul.java23
-rw-r--r--test/transform/resource/before/LoggerJul.java12
3 files changed, 48 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/LoggerJul.java b/test/transform/resource/after-delombok/LoggerJul.java
index cfb44fde..471e614c 100644
--- a/test/transform/resource/after-delombok/LoggerJul.java
+++ b/test/transform/resource/after-delombok/LoggerJul.java
@@ -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());
+ }
} \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/LoggerJul.java b/test/transform/resource/after-ecj/LoggerJul.java
index 20cc5407..d1408245 100644
--- a/test/transform/resource/after-ecj/LoggerJul.java
+++ b/test/transform/resource/after-ecj/LoggerJul.java
@@ -31,4 +31,27 @@ import lombok.extern.java.Log;
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();
+ }
} \ No newline at end of file
diff --git a/test/transform/resource/before/LoggerJul.java b/test/transform/resource/before/LoggerJul.java
index 7b10d015..24fcdcde 100644
--- a/test/transform/resource/before/LoggerJul.java
+++ b/test/transform/resource/before/LoggerJul.java
@@ -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;
+ }
} \ No newline at end of file