Generate correct hashCode when callSuper and no fields included. Fixes #1505

This commit is contained in:
Roel Spilker committed 2017-11-06 23:46:09 +01:00
1 parent 7fad34b0a6
commit 045638ec1f
12 files changed
+41 -48

No files matched your search

@@ -70,8 +70,7 @@ class EqualsAndHashCodeConfigKeys2 extends EqualsAndHashCodeConfigKeys2Parent {
@javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
result = result * PRIME + super.hashCode();
int result = super.hashCode();
result = result * PRIME + this.x;
return result;
}