Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update AUTHORS file. Remove extraneous code from
EqualsAndHashCodeWithNonNullByDefault test case.
  • Loading branch information
jopatai committed Feb 25, 2022
1 parent 22444b7 commit c67909e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 56 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Expand Up @@ -19,6 +19,7 @@ Jacob Middag <jacob@gaddim.nl>
Jan Matèrne <jhm@apache.org>
Jan Rieke <it@janrieke.de>
Jappe van der Hel <jappe.vanderhel@gmail.com>
John Paul Taylor II <johnpaultaylorii@gmail.com>
Kevin Chirls <kchirls@users.noreply.github.com>
Liu DongMiao <liudongmiao@gmail.com>
Luan Nico <luannico27@gmail.com>
Expand Down
@@ -1,27 +1,13 @@
import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
class EqualsAndHashCodeWithNonNullByDefault {
int x;
boolean[] y;
Object[] z;
String a;
String b;
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(@javax.annotation.Nullable final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCodeWithNonNullByDefault)) return false;
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;
}
@java.lang.SuppressWarnings("all")
Expand All @@ -31,15 +17,7 @@ protected boolean canEqual(@javax.annotation.Nullable final java.lang.Object oth
@java.lang.Override
@java.lang.SuppressWarnings("all")
public 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;
}
}
@@ -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();
}
Expand All @@ -16,35 +11,13 @@
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;
}
}
Expand Up @@ -3,9 +3,4 @@
@lombok.EqualsAndHashCode
@ParametersAreNonnullByDefault
class EqualsAndHashCodeWithNonNullByDefault {
int x;
boolean[] y;
Object[] z;
String a;
String b;
}

0 comments on commit c67909e

Please sign in to comment.