aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/after-delombok/LoggerFlogger.java12
-rw-r--r--test/transform/resource/after-ecj/LoggerFlogger.java23
-rw-r--r--test/transform/resource/before/LoggerFlogger.java12
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