[feature] FieldNameConstants now works like Builder: Make whatever bits it does by hand and lombok fills in whatever is missing.

This commit is contained in:
Reinier Zwitserloot committed 2018-11-01 16:38:25 +01:00
1 parent 21878e253e
commit 2fd46a50b6
13 files changed
+237 -68

No files matched your search

@@ -0,0 +1,30 @@
class FieldNameConstantsHandrolled1 {
int field1;
int alsoAField;
int thirdField;
public enum TypeTest {
alsoAField, thirdField, field1;
}
}
class FieldNameConstantsHandrolled2 {
int field1;
int alsoAField;
int thirdField;
public enum TypeTest {
alsoAField, thirdField, field1;
public String foo() {
return name();
}
}
}
class FieldNameConstantsHandrolled3 {
int field1;
int alsoAField;
int thirdField;
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;
}
}