aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/EqualsAndHashCodeWithExistingMethods.java
blob: be90d871c6ed439f6e6597964e70095698f91c70 (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
@lombok.EqualsAndHashCode
class EqualsAndHashCodeWithExistingMethods {
	int x;
	
	public int hashCode() {
		return 42;
	}
}

@lombok.EqualsAndHashCode
final class EqualsAndHashCodeWithExistingMethods2 {
	int x;
	
	public boolean equals(Object other) {
		return false;
	}
}

@lombok.EqualsAndHashCode(callSuper=true)
final class EqualsAndHashCodeWithExistingMethods3 extends EqualsAndHashCodeWithExistingMethods {
	int x;
	
	public boolean canEqual(Object other) {
		return true;
	}
}