diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-11-08 18:02:01 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-11-08 18:02:01 +0100 |
commit | c318bb7a0ab6b28fef262ea89bf2b7cdc7ac610f (patch) | |
tree | d82ffe624e8861b1e5966108a1175554e0f1bef8 /test/transform/resource/after-delombok/DataIgnore.java | |
parent | 46feeaab85916c8b6de5edee1c67a995331ae97f (diff) | |
parent | 6e5acaca49bff5af2b174078fb18b9015ae1bb71 (diff) | |
download | lombok-c318bb7a0ab6b28fef262ea89bf2b7cdc7ac610f.tar.gz lombok-c318bb7a0ab6b28fef262ea89bf2b7cdc7ac610f.tar.bz2 lombok-c318bb7a0ab6b28fef262ea89bf2b7cdc7ac610f.zip |
Merge branch 'master' of github.com:rzwitserloot/lombok
Diffstat (limited to 'test/transform/resource/after-delombok/DataIgnore.java')
-rw-r--r-- | test/transform/resource/after-delombok/DataIgnore.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/transform/resource/after-delombok/DataIgnore.java b/test/transform/resource/after-delombok/DataIgnore.java index 7e81432d..9f2a7d79 100644 --- a/test/transform/resource/after-delombok/DataIgnore.java +++ b/test/transform/resource/after-delombok/DataIgnore.java @@ -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() + ")"; } -} +}
\ No newline at end of file |