mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 14:21:47 +00:00
[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:
@@ -0,0 +1,7 @@
|
||||
@lombok.EqualsAndHashCode
|
||||
class EqualsAndHashCodeEmpty {
|
||||
}
|
||||
|
||||
@lombok.EqualsAndHashCode(callSuper = true)
|
||||
class EqualsAndHashCodeEmptyWithSuper extends EqualsAndHashCodeEmpty {
|
||||
}
|
||||
Reference in New Issue
Block a user