mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-16 02:15:36 +00:00
Generate correct hashCode when callSuper and no fields included. Fixes #1505
This commit is contained in:
1 parent
7fad34b0a6
commit
045638ec1f
12 files changed
+41
-48
No files matched your search
@@ -125,9 +125,7 @@ class EqualsAndHashCode4 extends EqualsAndHashCode {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
public int hashCode() {
|
||||
final int PRIME = 59;
|
||||
int result = 1;
|
||||
result = result * PRIME + super.hashCode();
|
||||
int result = super.hashCode();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user