diff options
Diffstat (limited to 'test/transform/resource/after-ecj/DataOnLocalClass.java')
-rw-r--r-- | test/transform/resource/after-ecj/DataOnLocalClass.java | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/test/transform/resource/after-ecj/DataOnLocalClass.java b/test/transform/resource/after-ecj/DataOnLocalClass.java index a17033c2..b987b967 100644 --- a/test/transform/resource/after-ecj/DataOnLocalClass.java +++ b/test/transform/resource/after-ecj/DataOnLocalClass.java @@ -23,17 +23,20 @@ class DataOnLocalClass1 { 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 Local))) return false; final Local other = (Local) o; + if ((! other.canEqual(this))) + return false; if ((this.getX() != other.getX())) return false; if (((this.getName() == null) ? (other.getName() != null) : (! this.getName().equals(other.getName())))) return false; return true; } + public @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) { + return (other instanceof Local); + } public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() { final int PRIME = 31; int result = 1; @@ -69,15 +72,18 @@ class DataOnLocalClass2 { 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 InnerLocal))) return false; final InnerLocal other = (InnerLocal) o; + if ((! other.canEqual(this))) + return false; if (((this.getName() == null) ? (other.getName() != null) : (! this.getName().equals(other.getName())))) return false; return true; } + public @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) { + return (other instanceof InnerLocal); + } public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() { final int PRIME = 31; int result = 1; @@ -99,15 +105,18 @@ class DataOnLocalClass2 { 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 Local))) return false; final Local other = (Local) o; + if ((! other.canEqual(this))) + return false; if ((this.getX() != other.getX())) return false; return true; } + public @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) { + return (other instanceof Local); + } public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() { final int PRIME = 31; int result = 1; |