diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-08-27 22:19:29 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-08-27 22:19:29 +0200 |
commit | 7c786f5af61185983940cad794fe2cb50d426005 (patch) | |
tree | d43e9ab3629cc4944f05780f82126bad11d96ff5 /src/lombok/eclipse/handlers/HandleData.java | |
parent | 8aab4e60d62eaad04f5df8fb78621d53d12da2db (diff) | |
download | lombok-7c786f5af61185983940cad794fe2cb50d426005.tar.gz lombok-7c786f5af61185983940cad794fe2cb50d426005.tar.bz2 lombok-7c786f5af61185983940cad794fe2cb50d426005.zip |
Made all parameters of all generated methods 'final'.
Diffstat (limited to 'src/lombok/eclipse/handlers/HandleData.java')
-rw-r--r-- | src/lombok/eclipse/handlers/HandleData.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lombok/eclipse/handlers/HandleData.java b/src/lombok/eclipse/handlers/HandleData.java index f1623e39..b598313b 100644 --- a/src/lombok/eclipse/handlers/HandleData.java +++ b/src/lombok/eclipse/handlers/HandleData.java @@ -147,7 +147,7 @@ public class HandleData implements EclipseAnnotationHandler<Data> { thisX.token = field.name; assigns.add(new Assignment(thisX, new SingleNameReference(field.name, p), (int)p)); long fieldPos = (((long)field.sourceStart) << 32) | field.sourceEnd; - args.add(new Argument(field.name, fieldPos, copyType(field.type), 0)); + args.add(new Argument(field.name, fieldPos, copyType(field.type), Modifier.FINAL)); } constructor.statements = assigns.isEmpty() ? null : assigns.toArray(new Statement[assigns.size()]); @@ -188,7 +188,7 @@ public class HandleData implements EclipseAnnotationHandler<Data> { FieldDeclaration field = (FieldDeclaration) fieldNode.get(); long fieldPos = (((long)field.sourceStart) << 32) | field.sourceEnd; assigns.add(new SingleNameReference(field.name, fieldPos)); - args.add(new Argument(field.name, fieldPos, copyType(field.type), 0)); + args.add(new Argument(field.name, fieldPos, copyType(field.type), Modifier.FINAL)); } statement.arguments = assigns.isEmpty() ? null : assigns.toArray(new Expression[assigns.size()]); |