aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/EqualsAndHashCodeWithExistingMethods.java
blob: e21b82d9830eaa004be87baeb60423c659a89644 (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;
	
	private boolean canEqual(Object other) {
		return true;
	}
}