aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/javac
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2009-07-18 02:51:46 +0200
committerRoel Spilker <r.spilker@gmail.com>2009-07-18 02:51:46 +0200
commit237c337ed13467376f30dd3a013c15ff7dea4b1c (patch)
tree71e2881fcb39c2bd621f454b45466c00b556a565 /src/lombok/javac
parentffec3c35f3c65c766acc34a363fcb237f0b2e899 (diff)
downloadlombok-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/javac')
-rw-r--r--src/lombok/javac/handlers/HandleData.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lombok/javac/handlers/HandleData.java b/src/lombok/javac/handlers/HandleData.java
index 41165600..97a90d85 100644
--- a/src/lombok/javac/handlers/HandleData.java
+++ b/src/lombok/javac/handlers/HandleData.java
@@ -87,7 +87,7 @@ public class HandleData implements JavacAnnotationHandler<Data> {
if ( (fieldFlags & Flags.TRANSIENT) == 0 ) nodesForEquality = nodesForEquality.append(child);
boolean isFinal = (fieldFlags & Flags.FINAL) != 0;
nodesForToString = nodesForToString.append(child);
- if ( isFinal ) nodesForConstructor = nodesForConstructor.append(child);
+ if ( isFinal && fieldDecl.init == null ) nodesForConstructor = nodesForConstructor.append(child);
new HandleGetter().generateGetterForField(child, annotationNode.get());
if ( !isFinal ) new HandleSetter().generateSetterForField(child, annotationNode.get());
}