aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/FieldNameConstantsHandrolled.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before/FieldNameConstantsHandrolled.java')
-rw-r--r--test/transform/resource/before/FieldNameConstantsHandrolled.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/transform/resource/before/FieldNameConstantsHandrolled.java b/test/transform/resource/before/FieldNameConstantsHandrolled.java
new file mode 100644
index 00000000..b6765fb2
--- /dev/null
+++ b/test/transform/resource/before/FieldNameConstantsHandrolled.java
@@ -0,0 +1,33 @@
+import lombok.experimental.FieldNameConstants;
+import lombok.AccessLevel;
+
+@FieldNameConstants(asEnum = true, innerTypeName = "TypeTest")
+class FieldNameConstantsHandrolled1 {
+ int field1, alsoAField, thirdField;
+
+ public enum TypeTest {
+ field1
+ }
+}
+
+@FieldNameConstants(asEnum = true, innerTypeName = "TypeTest")
+class FieldNameConstantsHandrolled2 {
+ int field1, alsoAField, thirdField;
+
+ public enum TypeTest {
+ field1;
+
+ public String foo() {
+ return name();
+ }
+ }
+}
+
+@FieldNameConstants
+class FieldNameConstantsHandrolled3 {
+ int field1, alsoAField, thirdField;
+
+ static class Fields {
+ public static final int alsoAField = 5;
+ }
+}