Added support for canEquals in javac

This commit is contained in:
Roel Spilker committed 2010-11-08 02:57:01 +01:00
1 parent d4ae32fd79
commit 6e5acaca49
9 files changed
+287 -44

No files matched your search

@@ -14,12 +14,16 @@ class DataIgnore {
@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 DataIgnore)) return false;
final DataIgnore other = (DataIgnore)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 DataIgnore;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
@@ -33,4 +37,4 @@ class DataIgnore {
public java.lang.String toString() {
return "DataIgnore(x=" + this.getX() + ")";
}
}
}