aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/DataWithGetterNone.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok/DataWithGetterNone.java')
-rw-r--r--test/transform/resource/after-delombok/DataWithGetterNone.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/transform/resource/after-delombok/DataWithGetterNone.java b/test/transform/resource/after-delombok/DataWithGetterNone.java
index 161c70f9..b1cab7cf 100644
--- a/test/transform/resource/after-delombok/DataWithGetterNone.java
+++ b/test/transform/resource/after-delombok/DataWithGetterNone.java
@@ -19,14 +19,18 @@ class DataWithGetterNone {
@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 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) return false;
if (this.z == null ? other.z != null : !this.z.equals(other.z)) return false;
return true;
}
+ @java.lang.SuppressWarnings("all")
+ public boolean canEqual(final java.lang.Object other) {
+ return other instanceof DataWithGetterNone;
+ }
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {