aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/EqualsAndHashCodeWithNonNullByDefault.java
diff options
context:
space:
mode:
authorJohnPaulTaylorII <johnpaultaylorii@gmail.com>2022-02-25 16:48:35 -0500
committerJohnPaulTaylorII <johnpaultaylorii@gmail.com>2022-02-25 16:48:35 -0500
commitc67909e2039cdac449808464ff28a8e71a56b7a1 (patch)
tree56747d50cda77d9e96da9babfbd4cd1544766491 /test/transform/resource/after-ecj/EqualsAndHashCodeWithNonNullByDefault.java
parent22444b78e2b12680929acf1576b15a0717f267e2 (diff)
downloadlombok-c67909e2039cdac449808464ff28a8e71a56b7a1.tar.gz
lombok-c67909e2039cdac449808464ff28a8e71a56b7a1.tar.bz2
lombok-c67909e2039cdac449808464ff28a8e71a56b7a1.zip
Fixes #3120
Update AUTHORS file. Remove extraneous code from EqualsAndHashCodeWithNonNullByDefault test case.
Diffstat (limited to 'test/transform/resource/after-ecj/EqualsAndHashCodeWithNonNullByDefault.java')
-rw-r--r--test/transform/resource/after-ecj/EqualsAndHashCodeWithNonNullByDefault.java29
1 files changed, 1 insertions, 28 deletions
diff --git a/test/transform/resource/after-ecj/EqualsAndHashCodeWithNonNullByDefault.java b/test/transform/resource/after-ecj/EqualsAndHashCodeWithNonNullByDefault.java
index 5a679e50..0cd170b4 100644
--- a/test/transform/resource/after-ecj/EqualsAndHashCodeWithNonNullByDefault.java
+++ b/test/transform/resource/after-ecj/EqualsAndHashCodeWithNonNullByDefault.java
@@ -1,10 +1,5 @@
import javax.annotation.ParametersAreNonnullByDefault;
@lombok.EqualsAndHashCode @ParametersAreNonnullByDefault class EqualsAndHashCodeWithNonNullByDefault {
- int x;
- boolean[] y;
- Object[] z;
- String a;
- String b;
EqualsAndHashCodeWithNonNullByDefault() {
super();
}
@@ -16,35 +11,13 @@ import javax.annotation.ParametersAreNonnullByDefault;
final EqualsAndHashCodeWithNonNullByDefault other = (EqualsAndHashCodeWithNonNullByDefault) o;
if ((! other.canEqual((java.lang.Object) this)))
return false;
- if ((this.x != other.x))
- return false;
- if ((! java.util.Arrays.equals(this.y, other.y)))
- return false;
- if ((! java.util.Arrays.deepEquals(this.z, other.z)))
- return false;
- final java.lang.Object this$a = this.a;
- final java.lang.Object other$a = other.a;
- if (((this$a == null) ? (other$a != null) : (! this$a.equals(other$a))))
- return false;
- final java.lang.Object this$b = this.b;
- final java.lang.Object other$b = other.b;
- if (((this$b == null) ? (other$b != null) : (! this$b.equals(other$b))))
- return false;
return true;
}
protected @java.lang.SuppressWarnings("all") boolean canEqual(final @javax.annotation.Nullable java.lang.Object other) {
return (other instanceof EqualsAndHashCodeWithNonNullByDefault);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
- final int PRIME = 59;
- int result = 1;
- result = ((result * PRIME) + this.x);
- result = ((result * PRIME) + java.util.Arrays.hashCode(this.y));
- result = ((result * PRIME) + java.util.Arrays.deepHashCode(this.z));
- final java.lang.Object $a = this.a;
- result = ((result * PRIME) + (($a == null) ? 43 : $a.hashCode()));
- final java.lang.Object $b = this.b;
- result = ((result * PRIME) + (($b == null) ? 43 : $b.hashCode()));
+ final int result = 1;
return result;
}
} \ No newline at end of file