diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-11-01 16:38:25 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-11-01 16:38:25 +0100 |
commit | 2fd46a50b6125fd9f0e8177ffad5db8ee934fe34 (patch) | |
tree | 6662a3cb71b99b8c2b9fc058db8b735dc36145d0 /test/transform/resource/after-ecj/FieldNameConstantsHandrolled.java | |
parent | 21878e253e331f6ea340ae44bf824890185e1938 (diff) | |
download | lombok-2fd46a50b6125fd9f0e8177ffad5db8ee934fe34.tar.gz lombok-2fd46a50b6125fd9f0e8177ffad5db8ee934fe34.tar.bz2 lombok-2fd46a50b6125fd9f0e8177ffad5db8ee934fe34.zip |
[feature] FieldNameConstants now works like Builder: Make whatever bits it does by hand and lombok fills in whatever is missing.
Diffstat (limited to 'test/transform/resource/after-ecj/FieldNameConstantsHandrolled.java')
-rw-r--r-- | test/transform/resource/after-ecj/FieldNameConstantsHandrolled.java | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/FieldNameConstantsHandrolled.java b/test/transform/resource/after-ecj/FieldNameConstantsHandrolled.java new file mode 100644 index 00000000..6762fdd8 --- /dev/null +++ b/test/transform/resource/after-ecj/FieldNameConstantsHandrolled.java @@ -0,0 +1,59 @@ +import lombok.experimental.FieldNameConstants; +import lombok.AccessLevel; +@FieldNameConstants(asEnum = true,innerTypeName = "TypeTest") class FieldNameConstantsHandrolled1 { + public enum TypeTest { + field1(), + alsoAField(), + thirdField(), + <clinit>() { + } + private @java.lang.SuppressWarnings("all") TypeTest() { + super(); + } + } + int field1; + int alsoAField; + int thirdField; + FieldNameConstantsHandrolled1() { + super(); + } +} +@FieldNameConstants(asEnum = true,innerTypeName = "TypeTest") class FieldNameConstantsHandrolled2 { + public enum TypeTest { + field1(), + alsoAField(), + thirdField(), + <clinit>() { + } + public String foo() { + return name(); + } + private @java.lang.SuppressWarnings("all") TypeTest() { + super(); + } + } + int field1; + int alsoAField; + int thirdField; + FieldNameConstantsHandrolled2() { + super(); + } +} +@FieldNameConstants class FieldNameConstantsHandrolled3 { + static class Fields { + public static final java.lang.String field1 = "field1"; + public static final java.lang.String thirdField = "thirdField"; + public static final int alsoAField = 5; + <clinit>() { + } + private @java.lang.SuppressWarnings("all") Fields() { + super(); + } + } + int field1; + int alsoAField; + int thirdField; + FieldNameConstantsHandrolled3() { + super(); + } +} |