Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fixes #2849] Make ToString's onlyExplicitlyIncluded a config key.
- Loading branch information
1 parent
d71a880
commit 6d2a474
Showing
9 changed files
with
71 additions
and
27 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
9 changes: 9 additions & 0 deletions
9
test/transform/resource/after-delombok/ToStringExplicitIncludeConf.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,9 @@ | ||
class ToStringExplicitIncludeConf { | ||
int x; | ||
int y; | ||
@java.lang.Override | ||
@java.lang.SuppressWarnings("all") | ||
public java.lang.String toString() { | ||
return "ToStringExplicitIncludeConf(" + this.y + ")"; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
test/transform/resource/after-ecj/ToStringExplicitIncludeConf.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,10 @@ | ||
@lombok.ToString class ToStringExplicitIncludeConf { | ||
int x; | ||
@lombok.ToString.Include int y; | ||
ToStringExplicitIncludeConf() { | ||
super(); | ||
} | ||
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { | ||
return (("ToStringExplicitIncludeConf(y=" + this.y) + ")"); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test/transform/resource/before/ToStringExplicitIncludeConf.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,7 @@ | ||
//CONF: lombok.toString.onlyExplicitlyIncluded = true | ||
|
||
@lombok.ToString | ||
class ToStringExplicitIncludeConf { | ||
int x; | ||
@lombok.ToString.Include int y; | ||
} |
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