diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-11-08 15:51:08 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-11-08 15:51:08 +0100 |
commit | db19327cb4b9f5a08665b85d4cb953118ce69c13 (patch) | |
tree | 4271b44e0d4c2737d54744ad7e8f0222d5c7b3d2 /test/transform/resource/before | |
parent | a685d0828c3cda044073054c203d17bcf6ab1096 (diff) | |
download | lombok-db19327cb4b9f5a08665b85d4cb953118ce69c13.tar.gz lombok-db19327cb4b9f5a08665b85d4cb953118ce69c13.tar.bz2 lombok-db19327cb4b9f5a08665b85d4cb953118ce69c13.zip |
[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.
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/EqualsAndHashCodeEmpty.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/transform/resource/before/EqualsAndHashCodeEmpty.java b/test/transform/resource/before/EqualsAndHashCodeEmpty.java new file mode 100644 index 00000000..763c7b37 --- /dev/null +++ b/test/transform/resource/before/EqualsAndHashCodeEmpty.java @@ -0,0 +1,7 @@ +@lombok.EqualsAndHashCode +class EqualsAndHashCodeEmpty { +} + +@lombok.EqualsAndHashCode(callSuper = true) +class EqualsAndHashCodeEmptyWithSuper extends EqualsAndHashCodeEmpty { +} |