mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 04:18:44 +00:00
Added support for canEquals in javac
This commit is contained in:
1 parent
d4ae32fd79
commit
6e5acaca49
9 files changed
+287
-44
No files matched your search
@@ -19,14 +19,18 @@ class DataWithGetter {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (o == null) return false;
|
||||
if (o.getClass() != this.getClass()) return false;
|
||||
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()) return false;
|
||||
if (this.getZ() == null ? other.getZ() != null : !this.getZ().equals(other.getZ())) return false;
|
||||
return true;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public boolean canEqual(final java.lang.Object other) {
|
||||
return other instanceof DataWithGetter;
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public int hashCode() {
|
||||
|
||||
Reference in new issue
Block a user