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/after-delombok/EqualsAndHashCodeExplicitInclude.java | |
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/after-delombok/EqualsAndHashCodeExplicitInclude.java')
-rw-r--r-- | test/transform/resource/after-delombok/EqualsAndHashCodeExplicitInclude.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/transform/resource/after-delombok/EqualsAndHashCodeExplicitInclude.java b/test/transform/resource/after-delombok/EqualsAndHashCodeExplicitInclude.java index 7de3d5fe..2d64e2fd 100644 --- a/test/transform/resource/after-delombok/EqualsAndHashCodeExplicitInclude.java +++ b/test/transform/resource/after-delombok/EqualsAndHashCodeExplicitInclude.java @@ -16,7 +16,7 @@ class EqualsAndHashCodeExplicitInclude { @java.lang.Override @java.lang.SuppressWarnings("all") public int hashCode() { - int result = 1; + final int result = 1; return result; } }
\ No newline at end of file |