diff options
author | Roel Spilker <r.spilker@gmail.com> | 2020-06-18 22:08:25 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2020-06-18 22:08:25 +0200 |
commit | 39d2c280fbaced63f5697481af6b37ab81891798 (patch) | |
tree | 148dd9e4b3798e78b59105b2a5535b396c723aec /test/transform/resource/after-ecj/BuilderDefaults.java | |
parent | c4db4e124c5081602802f88b7ebe564c8af3aac8 (diff) | |
download | lombok-39d2c280fbaced63f5697481af6b37ab81891798.tar.gz lombok-39d2c280fbaced63f5697481af6b37ab81891798.tar.bz2 lombok-39d2c280fbaced63f5697481af6b37ab81891798.zip |
Fixes #1543: in equals, by default first compare the primitives
Diffstat (limited to 'test/transform/resource/after-ecj/BuilderDefaults.java')
-rw-r--r-- | test/transform/resource/after-ecj/BuilderDefaults.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/transform/resource/after-ecj/BuilderDefaults.java b/test/transform/resource/after-ecj/BuilderDefaults.java index 46f55bef..c9be219d 100644 --- a/test/transform/resource/after-ecj/BuilderDefaults.java +++ b/test/transform/resource/after-ecj/BuilderDefaults.java @@ -72,25 +72,25 @@ public final @Value @Builder class BuilderDefaults { final BuilderDefaults other = (BuilderDefaults) o; if ((this.getX() != other.getX())) return false; + if ((this.getZ() != other.getZ())) + return false; final java.lang.Object this$name = this.getName(); final java.lang.Object other$name = other.getName(); if (((this$name == null) ? (other$name != null) : (! this$name.equals(other$name)))) return false; - if ((this.getZ() != other.getZ())) - return false; return true; } public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() { final int PRIME = 59; int result = 1; result = ((result * PRIME) + this.getX()); - final java.lang.Object $name = this.getName(); - result = ((result * PRIME) + (($name == null) ? 43 : $name.hashCode())); final long $z = this.getZ(); result = ((result * PRIME) + (int) ($z ^ ($z >>> 32))); + final java.lang.Object $name = this.getName(); + result = ((result * PRIME) + (($name == null) ? 43 : $name.hashCode())); return result; } public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { return (((((("BuilderDefaults(x=" + this.getX()) + ", name=") + this.getName()) + ", z=") + this.getZ()) + ")"); } -} +}
\ No newline at end of file |