mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-16 14:13:32 +00:00
Some of the tests weren't succeeding (and haven't for a while now) since fixing the bug where lombok will call equals(SomeSpecificType) instead of equals(Object) from data. This commit rectifies this by updating the tests.
This commit is contained in:
1 parent
47037e2830
commit
41a85d2814
15 files changed
+42
-43
No files matched your search
@@ -25,9 +25,9 @@ class DataOnLocalClass1 {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof Local)) return false;
|
||||
final Local other = (Local)o;
|
||||
if (!other.canEqual(this)) return false;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
if (this.getName() == null ? other.getName() != null : !this.getName().equals(other.getName())) return false;
|
||||
if (this.getName() == null ? other.getName() != null : !this.getName().equals((java.lang.Object)other.getName())) return false;
|
||||
return true;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@@ -79,8 +79,8 @@ class DataOnLocalClass2 {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof InnerLocal)) return false;
|
||||
final InnerLocal other = (InnerLocal)o;
|
||||
if (!other.canEqual(this)) return false;
|
||||
if (this.getName() == null ? other.getName() != null : !this.getName().equals(other.getName())) return false;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
if (this.getName() == null ? other.getName() != null : !this.getName().equals((java.lang.Object)other.getName())) return false;
|
||||
return true;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@@ -115,7 +115,7 @@ class DataOnLocalClass2 {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof Local)) return false;
|
||||
final Local other = (Local)o;
|
||||
if (!other.canEqual(this)) return false;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user