diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2020-06-28 00:58:54 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2020-07-02 23:08:41 +0200 |
commit | 9425e99b49d1a203c692fd2001ff3fd3d1612303 (patch) | |
tree | 99116795de313cec3e612026e81903d4e96a639b /test/transform/resource/before/LoggerSlf4j.java | |
parent | e4ec9e664806612a5998bfdfa921837a43d58569 (diff) | |
download | lombok-9425e99b49d1a203c692fd2001ff3fd3d1612303.tar.gz lombok-9425e99b49d1a203c692fd2001ff3fd3d1612303.tar.bz2 lombok-9425e99b49d1a203c692fd2001ff3fd3d1612303.zip |
[fixes #2469] Support static reference as logger topic
Diffstat (limited to 'test/transform/resource/before/LoggerSlf4j.java')
-rw-r--r-- | test/transform/resource/before/LoggerSlf4j.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/transform/resource/before/LoggerSlf4j.java b/test/transform/resource/before/LoggerSlf4j.java index 1113a63e..3f8284e8 100644 --- a/test/transform/resource/before/LoggerSlf4j.java +++ b/test/transform/resource/before/LoggerSlf4j.java @@ -17,4 +17,18 @@ class LoggerSlf4jOuter { @Slf4j(topic="DifferentLogger") class LoggerSlf4jWithDifferentLoggerName { +} + +@Slf4j(topic=LoggerSlf4jWithStaticField.TOPIC) +class LoggerSlf4jWithStaticField { + static final String TOPIC = "StaticField"; +} + +@Slf4j(topic=LoggerSlf4jWithTwoStaticFields.TOPIC + LoggerSlf4jWithTwoStaticFields.TOPIC) +class LoggerSlf4jWithTwoStaticFields { + static final String TOPIC = "StaticField"; +} + +@Slf4j(topic="A"+"B") +class LoggerSlf4jWithTwoLiterals { }
\ No newline at end of file |