mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-16 18:15:49 +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
@@ -23,13 +23,17 @@ class DataOnLocalClass1 {
|
||||
@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 Local)) return false;
|
||||
final Local other = (Local)o;
|
||||
if (!other.canEqual(this)) return false;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
if (this.getName() == null ? other.getName() != null : !this.getName().equals(other.getName())) return false;
|
||||
return true;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public boolean canEqual(final java.lang.Object other) {
|
||||
return other instanceof Local;
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public int hashCode() {
|
||||
@@ -73,12 +77,16 @@ class DataOnLocalClass2 {
|
||||
@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 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;
|
||||
return true;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public boolean canEqual(final java.lang.Object other) {
|
||||
return other instanceof InnerLocal;
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public int hashCode() {
|
||||
@@ -105,12 +113,16 @@ class DataOnLocalClass2 {
|
||||
@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 Local)) return false;
|
||||
final Local other = (Local)o;
|
||||
if (!other.canEqual(this)) return false;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
return true;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public boolean canEqual(final java.lang.Object other) {
|
||||
return other instanceof Local;
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public int hashCode() {
|
||||
|
||||
Reference in new issue
Block a user