mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 16:14:46 +00:00
fixing tests to account for generation of javax.annotation.Generated and ConstructorProperties being default-off.
This commit is contained in:
1 parent
d7c019c07c
commit
9aac454aec
234 files changed
+819
-1667
No files matched your search
@@ -2,25 +2,20 @@ class DataWithGetterNone {
|
||||
private int x;
|
||||
private int y;
|
||||
private final String z;
|
||||
@java.beans.ConstructorProperties({"z"})
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public DataWithGetterNone(final String z) {
|
||||
this.z = z;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public void setX(final int x) {
|
||||
this.x = x;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public void setY(final int y) {
|
||||
this.y = y;
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof DataWithGetterNone)) return false;
|
||||
@@ -34,13 +29,11 @@ class DataWithGetterNone {
|
||||
return true;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
protected boolean canEqual(final java.lang.Object other) {
|
||||
return other instanceof DataWithGetterNone;
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public int hashCode() {
|
||||
final int PRIME = 59;
|
||||
int result = 1;
|
||||
@@ -52,7 +45,6 @@ class DataWithGetterNone {
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public java.lang.String toString() {
|
||||
return "DataWithGetterNone(x=" + this.x + ", y=" + this.y + ", z=" + this.z + ")";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user