From 045638ec1f79f68747f135061d2e026faa719642 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 6 Nov 2017 23:45:52 +0100 Subject: Generate correct hashCode when callSuper and no fields included. Fixes #1505 --- .../resource/after-delombok/EqualsAndHashCodeConfigKeys2.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java') diff --git a/test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java b/test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java index 333b6b58..9ba32222 100644 --- a/test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java +++ b/test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java @@ -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; } -- cgit