aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/eclipse/handlers/HandleData.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-07-18 02:53:11 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-07-18 02:53:11 +0200
commitb7c969789961069b65bb811049826c2ccb5eb936 (patch)
treeb40e8a052df9a7a93e15ee1972a272ff07c96c50 /src/lombok/eclipse/handlers/HandleData.java
parent932e185045e9b44b66150ec11d055502ace26435 (diff)
parent237c337ed13467376f30dd3a013c15ff7dea4b1c (diff)
downloadlombok-b7c969789961069b65bb811049826c2ccb5eb936.tar.gz
lombok-b7c969789961069b65bb811049826c2ccb5eb936.tar.bz2
lombok-b7c969789961069b65bb811049826c2ccb5eb936.zip
Merge branch 'master' of git@github.com:rzwitserloot/lombok
Diffstat (limited to 'src/lombok/eclipse/handlers/HandleData.java')
-rw-r--r--src/lombok/eclipse/handlers/HandleData.java2
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());
}