diff options
author | Roel Spilker <r.spilker@gmail.com> | 2013-12-19 23:21:48 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2013-12-19 23:21:48 +0100 |
commit | fa1d765445d5f883af3a53cd86878cc4b2f51910 (patch) | |
tree | 1b8c8d1a01f91fdaf97ce6b480321420c5a02cb0 /src | |
parent | 7d51842ca381c491d5dfb44bc76b0cea345e7170 (diff) | |
download | lombok-fa1d765445d5f883af3a53cd86878cc4b2f51910.tar.gz lombok-fa1d765445d5f883af3a53cd86878cc4b2f51910.tar.bz2 lombok-fa1d765445d5f883af3a53cd86878cc4b2f51910.zip |
Added flag PARAMETER to the generated parameters.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleSetter.java | 2 | ||||
-rw-r--r-- | src/core/lombok/javac/handlers/HandleWither.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/javac/handlers/HandleSetter.java b/src/core/lombok/javac/handlers/HandleSetter.java index 444c2be9..bd11b06c 100644 --- a/src/core/lombok/javac/handlers/HandleSetter.java +++ b/src/core/lombok/javac/handlers/HandleSetter.java @@ -211,7 +211,7 @@ public class HandleSetter extends JavacAnnotationHandler<Setter> { Name methodName = field.toName(setterName); List<JCAnnotation> annsOnParam = copyAnnotations(onParam).appendList(nonNulls).appendList(nullables); - long flags = JavacHandlerUtil.addFinalIfNeeded(0L, field.getContext()); + long flags = JavacHandlerUtil.addFinalIfNeeded(Flags.PARAMETER, field.getContext()); JCVariableDecl param = treeMaker.VarDef(treeMaker.Modifiers(flags, annsOnParam), fieldDecl.name, fieldDecl.vartype, null); if (nonNulls.isEmpty()) { diff --git a/src/core/lombok/javac/handlers/HandleWither.java b/src/core/lombok/javac/handlers/HandleWither.java index 85ac3e37..aff84c8e 100644 --- a/src/core/lombok/javac/handlers/HandleWither.java +++ b/src/core/lombok/javac/handlers/HandleWither.java @@ -214,7 +214,7 @@ public class HandleWither extends JavacAnnotationHandler<Wither> { Name methodName = field.toName(witherName); List<JCAnnotation> annsOnParam = copyAnnotations(onParam).appendList(nonNulls).appendList(nullables); - long flags = JavacHandlerUtil.addFinalIfNeeded(0L, field.getContext()); + long flags = JavacHandlerUtil.addFinalIfNeeded(Flags.PARAMETER, field.getContext()); JCVariableDecl param = maker.VarDef(maker.Modifiers(flags, annsOnParam), fieldDecl.name, fieldDecl.vartype, null); JCExpression selfType = cloneSelfType(field); |