From 41a85d2814a979cb2c1c31b5a95dd96cd8a23f87 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 17 Jan 2011 23:57:11 +0100 Subject: Some of the tests weren't succeeding (and haven't for a while now) since fixing the bug where lombok will call equals(SomeSpecificType) instead of equals(Object) from data. This commit rectifies this by updating the tests. --- test/transform/resource/after-delombok/DataPlain.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/transform/resource/after-delombok/DataPlain.java') diff --git a/test/transform/resource/after-delombok/DataPlain.java b/test/transform/resource/after-delombok/DataPlain.java index 38e006ed..5124fbeb 100644 --- a/test/transform/resource/after-delombok/DataPlain.java +++ b/test/transform/resource/after-delombok/DataPlain.java @@ -24,9 +24,9 @@ class Data1 { if (o == this) return true; if (!(o instanceof Data1)) return false; final Data1 other = (Data1)o; - if (!other.canEqual(this)) return false; + if (!other.canEqual((java.lang.Object)this)) return false; if (this.getX() != other.getX()) return false; - if (this.getName() == null ? other.getName() != null : !this.getName().equals(other.getName())) return false; + if (this.getName() == null ? other.getName() != null : !this.getName().equals((java.lang.Object)other.getName())) return false; return true; } @java.lang.SuppressWarnings("all") @@ -74,9 +74,9 @@ class Data2 { if (o == this) return true; if (!(o instanceof Data2)) return false; final Data2 other = (Data2)o; - if (!other.canEqual(this)) return false; + if (!other.canEqual((java.lang.Object)this)) return false; if (this.getX() != other.getX()) return false; - if (this.getName() == null ? other.getName() != null : !this.getName().equals(other.getName())) return false; + if (this.getName() == null ? other.getName() != null : !this.getName().equals((java.lang.Object)other.getName())) return false; return true; } @java.lang.SuppressWarnings("all") @@ -125,7 +125,7 @@ final class Data3 { if (!(o instanceof Data3)) return false; final Data3 other = (Data3)o; if (this.getX() != other.getX()) return false; - if (this.getName() == null ? other.getName() != null : !this.getName().equals(other.getName())) return false; + if (this.getName() == null ? other.getName() != null : !this.getName().equals((java.lang.Object)other.getName())) return false; return true; } @java.lang.Override @@ -163,7 +163,7 @@ final class Data4 extends java.util.Timer { if (o == this) return true; if (!(o instanceof Data4)) return false; final Data4 other = (Data4)o; - if (!other.canEqual(this)) return false; + if (!other.canEqual((java.lang.Object)this)) return false; if (!super.equals(o)) return false; if (this.getX() != other.getX()) return false; return true; @@ -192,7 +192,7 @@ class Data5 { if (o == this) return true; if (!(o instanceof Data5)) return false; final Data5 other = (Data5)o; - if (!other.canEqual(this)) return false; + if (!other.canEqual((java.lang.Object)this)) return false; return true; } @java.lang.SuppressWarnings("all") -- cgit