aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/javac/handlers/HandleData.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-08-27 22:19:29 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-08-27 22:19:29 +0200
commit7c786f5af61185983940cad794fe2cb50d426005 (patch)
treed43e9ab3629cc4944f05780f82126bad11d96ff5 /src/lombok/javac/handlers/HandleData.java
parent8aab4e60d62eaad04f5df8fb78621d53d12da2db (diff)
downloadlombok-7c786f5af61185983940cad794fe2cb50d426005.tar.gz
lombok-7c786f5af61185983940cad794fe2cb50d426005.tar.bz2
lombok-7c786f5af61185983940cad794fe2cb50d426005.zip
Made all parameters of all generated methods 'final'.
Diffstat (limited to 'src/lombok/javac/handlers/HandleData.java')
-rw-r--r--src/lombok/javac/handlers/HandleData.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lombok/javac/handlers/HandleData.java b/src/lombok/javac/handlers/HandleData.java
index 003b8808..7b094106 100644
--- a/src/lombok/javac/handlers/HandleData.java
+++ b/src/lombok/javac/handlers/HandleData.java
@@ -111,7 +111,7 @@ public class HandleData implements JavacAnnotationHandler<Data> {
for ( Node fieldNode : fields ) {
JCVariableDecl field = (JCVariableDecl) fieldNode.get();
- JCVariableDecl param = maker.VarDef(maker.Modifiers(0), field.name, field.vartype, null);
+ JCVariableDecl param = maker.VarDef(maker.Modifiers(Flags.FINAL), field.name, field.vartype, null);
params = params.append(param);
JCFieldAccess thisX = maker.Select(maker.Ident(fieldNode.toName("this")), field.name);
JCAssign assign = maker.Assign(thisX, maker.Ident(field.name));
@@ -160,7 +160,7 @@ public class HandleData implements JavacAnnotationHandler<Data> {
for ( JCExpression arg : typeApply.arguments ) tArgs = tArgs.append(arg);
pType = maker.TypeApply(typeApply.clazz, tArgs);
} else pType = field.vartype;
- JCVariableDecl param = maker.VarDef(maker.Modifiers(0), field.name, pType, null);
+ JCVariableDecl param = maker.VarDef(maker.Modifiers(Flags.FINAL), field.name, pType, null);
params = params.append(param);
args = args.append(maker.Ident(field.name));
}