Files
openide/plugins/lombok/testData/after/equalsandhashcode/EqualsAndHashCodeExplicitInclude.java
Michail Plushnikov 65b72bdeef added support for ToString.Include.rank functionality #504
updated TestData

GitOrigin-RevId: bd9d428b2045cf62cf5c69723139638c5383948e
2018-10-20 16:40:33 +03:00

23 lines
625 B
Java

class EqualsAndHashCodeExplicitInclude {
int x;
@Override
@SuppressWarnings("all")
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCodeExplicitInclude)) return false;
final EqualsAndHashCodeExplicitInclude other = (EqualsAndHashCodeExplicitInclude) o;
if (!other.canEqual((Object) this)) return false;
return true;
}
@SuppressWarnings("all")
protected boolean canEqual(final Object other) {
return other instanceof EqualsAndHashCodeExplicitInclude;
}
@Override
@SuppressWarnings("all")
public int hashCode() {
int result = 1;
return result;
}
}