aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/DataExtended.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok/DataExtended.java')
-rw-r--r--test/transform/resource/after-delombok/DataExtended.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/transform/resource/after-delombok/DataExtended.java b/test/transform/resource/after-delombok/DataExtended.java
index 6f55bc2c..be1c3b74 100644
--- a/test/transform/resource/after-delombok/DataExtended.java
+++ b/test/transform/resource/after-delombok/DataExtended.java
@@ -15,12 +15,16 @@ class DataExtended {
@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 DataExtended)) return false;
final DataExtended other = (DataExtended)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 DataExtended;
+ }
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {