blob: 37711004e9ee782045488511e0db79c028e9d188 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
class EqualsAndHashCodeWithNonNullByDefault {
@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;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(@javax.annotation.Nullable final java.lang.Object other) {
return other instanceof EqualsAndHashCodeWithNonNullByDefault;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int result = 1;
return result;
}
}
|