diff options
author | Roel Spilker <r.spilker@gmail.com> | 2009-07-18 02:51:46 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2009-07-18 02:51:46 +0200 |
commit | 237c337ed13467376f30dd3a013c15ff7dea4b1c (patch) | |
tree | 71e2881fcb39c2bd621f454b45466c00b556a565 /src/lombok/eclipse/handlers/HandleData.java | |
parent | ffec3c35f3c65c766acc34a363fcb237f0b2e899 (diff) | |
download | lombok-237c337ed13467376f30dd3a013c15ff7dea4b1c.tar.gz lombok-237c337ed13467376f30dd3a013c15ff7dea4b1c.tar.bz2 lombok-237c337ed13467376f30dd3a013c15ff7dea4b1c.zip |
No constructor entry should be made for assigned final fields
Diffstat (limited to 'src/lombok/eclipse/handlers/HandleData.java')
-rw-r--r-- | src/lombok/eclipse/handlers/HandleData.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lombok/eclipse/handlers/HandleData.java b/src/lombok/eclipse/handlers/HandleData.java index 73ff79b4..5542dd58 100644 --- a/src/lombok/eclipse/handlers/HandleData.java +++ b/src/lombok/eclipse/handlers/HandleData.java @@ -119,7 +119,7 @@ public class HandleData implements EclipseAnnotationHandler<Data> { if ( (fieldDecl.modifiers & ClassFileConstants.AccTransient) == 0 ) nodesForEquality.add(child); boolean isFinal = (fieldDecl.modifiers & ClassFileConstants.AccFinal) != 0; nodesForToString.add(child); - if ( isFinal ) nodesForConstructor.add(child); + if ( isFinal && fieldDecl.initialization == null ) nodesForConstructor.add(child); new HandleGetter().generateGetterForField(child, annotationNode.get()); if ( !isFinal ) new HandleSetter().generateSetterForField(child, annotationNode.get()); } |