Files
lombok/test/transform/resource/before/EqualsAndHashCodeWithExistingMethods.java
T
Roel Spilker 4d24542dac [i660] canEqual is now protected instead of public.
Also fixed the total lack of canEqual in the usage examples.
2014-03-26 21:11:30 +01:00

26 lines
484 B
Java

@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;
}
}