aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/DataWithGetter.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2010-11-08 02:57:01 +0100
committerRoel Spilker <r.spilker@gmail.com>2010-11-08 02:57:01 +0100
commit6e5acaca49bff5af2b174078fb18b9015ae1bb71 (patch)
tree755650448a1de518ee6274f46beca00fa6a10d1c /test/transform/resource/after-delombok/DataWithGetter.java
parentd4ae32fd798dcb45c439869e990ff296f3f96036 (diff)
downloadlombok-6e5acaca49bff5af2b174078fb18b9015ae1bb71.tar.gz
lombok-6e5acaca49bff5af2b174078fb18b9015ae1bb71.tar.bz2
lombok-6e5acaca49bff5af2b174078fb18b9015ae1bb71.zip
Added support for canEquals in javac
Diffstat (limited to 'test/transform/resource/after-delombok/DataWithGetter.java')
-rw-r--r--test/transform/resource/after-delombok/DataWithGetter.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/transform/resource/after-delombok/DataWithGetter.java b/test/transform/resource/after-delombok/DataWithGetter.java
index 28b8dee0..1e181370 100644
--- a/test/transform/resource/after-delombok/DataWithGetter.java
+++ b/test/transform/resource/after-delombok/DataWithGetter.java
@@ -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() {