mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 10:15:53 +00:00
Added support for canEqual in ecj
This commit is contained in:
1 parent
616ef8581f
commit
dee834a397
8 files changed
+202
-95
No files matched your search
@@ -15,11 +15,11 @@
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
|
||||
if ((o == this))
|
||||
return true;
|
||||
if ((o == null))
|
||||
return false;
|
||||
if ((o.getClass() != this.getClass()))
|
||||
if ((! (o instanceof DataWithGetter)))
|
||||
return false;
|
||||
final DataWithGetter other = (DataWithGetter) o;
|
||||
if ((! other.canEqual(this)))
|
||||
return false;
|
||||
if ((this.getX() != other.getX()))
|
||||
return false;
|
||||
if ((this.getY() != other.getY()))
|
||||
@@ -28,6 +28,9 @@
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) {
|
||||
return (other instanceof DataWithGetter);
|
||||
}
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
|
||||
final int PRIME = 31;
|
||||
int result = 1;
|
||||
|
||||
Reference in new issue
Block a user