[fixes #1628] Lombok now marks the result field used in the generated hashCode method as final if it isn’t modified. This doesn’t change its behavior whatsoever, but some linters and especially eclipse save actions (specifically: ‘mark local variables final if possible’) cause issues when they try to mess with generated code. Of course, now any save action with ‘remove useless modifiers’ would cause an issue but those don’t (yet…) exist.

This commit is contained in:
Reinier Zwitserloot
2018-11-08 15:51:08 +01:00
parent a685d0828c
commit db19327cb4
25 changed files with 139 additions and 32 deletions
@@ -0,0 +1,7 @@
@lombok.EqualsAndHashCode
class EqualsAndHashCodeEmpty {
}
@lombok.EqualsAndHashCode(callSuper = true)
class EqualsAndHashCodeEmptyWithSuper extends EqualsAndHashCodeEmpty {
}