diff options
author | varkart <44122128+varkart@users.noreply.github.com> | 2022-02-17 13:05:09 -0500 |
---|---|---|
committer | varkart <44122128+varkart@users.noreply.github.com> | 2022-02-17 13:05:09 -0500 |
commit | 13fbad00e070b57f616727b2ae35bfc81674dbe3 (patch) | |
tree | a4e6fada53972c1dc2863e7226af3713696e8934 /test/transform/resource | |
parent | ce22dac7e3c80843474dd5c73c61c116b47c98fe (diff) | |
download | lombok-13fbad00e070b57f616727b2ae35bfc81674dbe3.tar.gz lombok-13fbad00e070b57f616727b2ae35bfc81674dbe3.tar.bz2 lombok-13fbad00e070b57f616727b2ae35bfc81674dbe3.zip |
[fixes #2990, #3069] flogger logger enum test cases
Diffstat (limited to 'test/transform/resource')
-rw-r--r-- | test/transform/resource/after-delombok/LoggerFlogger.java | 12 | ||||
-rw-r--r-- | test/transform/resource/after-ecj/LoggerFlogger.java | 23 | ||||
-rw-r--r-- | test/transform/resource/before/LoggerFlogger.java | 12 |
3 files changed, 47 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/LoggerFlogger.java b/test/transform/resource/after-delombok/LoggerFlogger.java index 41d49fe4..0fe8083a 100644 --- a/test/transform/resource/after-delombok/LoggerFlogger.java +++ b/test/transform/resource/after-delombok/LoggerFlogger.java @@ -12,3 +12,15 @@ class LoggerFloggerOuter { private static final com.google.common.flogger.FluentLogger log = com.google.common.flogger.FluentLogger.forEnclosingClass(); } } +enum LoggerFloggerWithEnum { + CONSTANT; + @java.lang.SuppressWarnings("all") + private static final com.google.common.flogger.FluentLogger log = com.google.common.flogger.FluentLogger.forEnclosingClass(); +} +class LoggerFloggerWithInnerEnum { + enum Inner { + CONSTANT; + @java.lang.SuppressWarnings("all") + private static final com.google.common.flogger.FluentLogger log = com.google.common.flogger.FluentLogger.forEnclosingClass(); + } +} diff --git a/test/transform/resource/after-ecj/LoggerFlogger.java b/test/transform/resource/after-ecj/LoggerFlogger.java index d0526eee..b97082ff 100644 --- a/test/transform/resource/after-ecj/LoggerFlogger.java +++ b/test/transform/resource/after-ecj/LoggerFlogger.java @@ -28,3 +28,26 @@ class LoggerFloggerOuter { super(); } } +@Flogger enum LoggerFloggerWithEnum { + CONSTANT(), + private static final com.google.common.flogger.FluentLogger log = com.google.common.flogger.FluentLogger.forEnclosingClass(); + <clinit>() { + } + LoggerFloggerWithEnum() { + super(); + } +} +class LoggerFloggerWithInnerEnum { + @Flogger enum Inner { + CONSTANT(), + private static final com.google.common.flogger.FluentLogger log = com.google.common.flogger.FluentLogger.forEnclosingClass(); + <clinit>() { + } + Inner() { + super(); + } + } + LoggerFloggerWithInnerEnum() { + super(); + } +} diff --git a/test/transform/resource/before/LoggerFlogger.java b/test/transform/resource/before/LoggerFlogger.java index b143aae9..ff0249c7 100644 --- a/test/transform/resource/before/LoggerFlogger.java +++ b/test/transform/resource/before/LoggerFlogger.java @@ -14,3 +14,15 @@ class LoggerFloggerOuter { } } + +@Flogger +enum LoggerFloggerWithEnum { + CONSTANT; +} + +class LoggerFloggerWithInnerEnum { + @Flogger + enum Inner { + CONSTANT; + } +}
\ No newline at end of file |