blob: 50b219f12ec54912ca2ce3d30ac91812cbbb6e1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
@lombok.EqualsAndHashCode class EqualsAndHashCodeWithExistingMethods {
int x;
EqualsAndHashCodeWithExistingMethods() {
super();
}
public int hashCode() {
return 42;
}
}
final @lombok.EqualsAndHashCode class EqualsAndHashCodeWithExistingMethods2 {
int x;
EqualsAndHashCodeWithExistingMethods2() {
super();
}
public boolean equals(Object other) {
return false;
}
}
final @lombok.EqualsAndHashCode(callSuper = true) class EqualsAndHashCodeWithExistingMethods3 extends EqualsAndHashCodeWithExistingMethods {
int x;
EqualsAndHashCodeWithExistingMethods3() {
super();
}
public boolean canEqual(Object other) {
return true;
}
}
|