Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature] FieldNameConstants now works like Builder: Make whatever bi…
…ts it does by hand and lombok fills in whatever is missing.
- Loading branch information
1 parent
21878e2
commit 2fd46a5
Showing
13 changed files
with
237 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
test/transform/resource/after-delombok/FieldNameConstantsHandrolled.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.