From 401a5bf7f2937f815bdfd47ccda5d6b97363cade Mon Sep 17 00:00:00 2001 From: varkart <44122128+varkart@users.noreply.github.com> Date: Thu, 17 Feb 2022 13:06:48 -0500 Subject: [fixes #2990, #3069] log4j2 logger enum test cases --- .../transform/resource/after-ecj/LoggerLog4j2.java | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'test/transform/resource/after-ecj/LoggerLog4j2.java') diff --git a/test/transform/resource/after-ecj/LoggerLog4j2.java b/test/transform/resource/after-ecj/LoggerLog4j2.java index 88def98d..72d4ff5f 100644 --- a/test/transform/resource/after-ecj/LoggerLog4j2.java +++ b/test/transform/resource/after-ecj/LoggerLog4j2.java @@ -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); + () { + } + 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); + () { + } + Inner() { + super(); + } + } + LoggerLog4j2WithInnerEnum() { + super(); + } } \ No newline at end of file -- cgit