forked from projectlombok/lombok
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for ToString.Include.rank functionality projectlombok#504
updated TestData
- Loading branch information
1 parent
a00cb1f
commit af7770e
Showing
14 changed files
with
116 additions
and
51 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
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
22 changes: 22 additions & 0 deletions
22
testData/after/equalsandhashcode/EqualsAndHashCodeExplicitInclude.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,22 @@ | ||
class EqualsAndHashCodeExplicitInclude { | ||
int x; | ||
@Override | ||
@SuppressWarnings("all") | ||
public boolean equals(final Object o) { | ||
if (o == this) return true; | ||
if (!(o instanceof EqualsAndHashCodeExplicitInclude)) return false; | ||
final EqualsAndHashCodeExplicitInclude other = (EqualsAndHashCodeExplicitInclude) o; | ||
if (!other.canEqual((Object) this)) return false; | ||
return true; | ||
} | ||
@SuppressWarnings("all") | ||
protected boolean canEqual(final Object other) { | ||
return other instanceof EqualsAndHashCodeExplicitInclude; | ||
} | ||
@Override | ||
@SuppressWarnings("all") | ||
public int hashCode() { | ||
int result = 1; | ||
return result; | ||
} | ||
} |
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,8 @@ | ||
class ToStringExplicitInclude { | ||
int x; | ||
@Override | ||
@SuppressWarnings("all") | ||
public String toString() { | ||
return "ToStringExplicitInclude()"; | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
testData/before/equalsandhashcode/EqualsAndHashCodeExplicitInclude.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,4 @@ | ||
@lombok.EqualsAndHashCode(onlyExplicitlyIncluded = true) | ||
class EqualsAndHashCodeExplicitInclude { | ||
int x; | ||
} |
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,4 @@ | ||
@lombok.ToString(onlyExplicitlyIncluded = true) | ||
class ToStringExplicitInclude { | ||
int x; | ||
} |