diff options
author | Roel Spilker <r.spilker@gmail.com> | 2010-11-08 22:00:06 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2010-11-08 22:00:06 +0100 |
commit | dee834a39780f61a0357c42f61592cd3c3598bd3 (patch) | |
tree | db5f48b53618e6ab94447a83d9b89dc5e6a58f68 /test/transform/resource/after-ecj/DataWithGetterNone.java | |
parent | 616ef8581f4ce1cb8593c0281ef8ac43f92ad8cd (diff) | |
download | lombok-dee834a39780f61a0357c42f61592cd3c3598bd3.tar.gz lombok-dee834a39780f61a0357c42f61592cd3c3598bd3.tar.bz2 lombok-dee834a39780f61a0357c42f61592cd3c3598bd3.zip |
Added support for canEqual in ecj
Diffstat (limited to 'test/transform/resource/after-ecj/DataWithGetterNone.java')
-rw-r--r-- | test/transform/resource/after-ecj/DataWithGetterNone.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/transform/resource/after-ecj/DataWithGetterNone.java b/test/transform/resource/after-ecj/DataWithGetterNone.java index 97509c07..0172f4f3 100644 --- a/test/transform/resource/after-ecj/DataWithGetterNone.java +++ b/test/transform/resource/after-ecj/DataWithGetterNone.java @@ -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 DataWithGetterNone))) return false; final DataWithGetterNone other = (DataWithGetterNone) o; + if ((! other.canEqual(this))) + return false; if ((this.x != other.x)) return false; if ((this.y != other.y)) @@ -28,6 +28,9 @@ return false; return true; } + public @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) { + return (other instanceof DataWithGetterNone); + } public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() { final int PRIME = 31; int result = 1; |