aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers/JavacSingularsRecipes.java
diff options
context:
space:
mode:
authorEmil Lundberg <emil@emlun.se>2019-01-10 03:31:46 +0100
committerEmil Lundberg <emil@emlun.se>2019-01-13 02:20:03 +0100
commit2747ce6a2ca3ae5b06cc8fdbd1c2c8607c515858 (patch)
treeb0b7a88f34db7eab9d5c36780cdee56dc543d067 /src/core/lombok/javac/handlers/JavacSingularsRecipes.java
parenta367f7815dcf7a818e3494929e3d005e06c2efb1 (diff)
downloadlombok-2747ce6a2ca3ae5b06cc8fdbd1c2c8607c515858.tar.gz
lombok-2747ce6a2ca3ae5b06cc8fdbd1c2c8607c515858.tar.bz2
lombok-2747ce6a2ca3ae5b06cc8fdbd1c2c8607c515858.zip
Move invariant parameter inside generateSingularMethodParameter
Diffstat (limited to 'src/core/lombok/javac/handlers/JavacSingularsRecipes.java')
-rw-r--r--src/core/lombok/javac/handlers/JavacSingularsRecipes.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/JavacSingularsRecipes.java b/src/core/lombok/javac/handlers/JavacSingularsRecipes.java
index d8dc65c7..b2bcf091 100644
--- a/src/core/lombok/javac/handlers/JavacSingularsRecipes.java
+++ b/src/core/lombok/javac/handlers/JavacSingularsRecipes.java
@@ -266,7 +266,8 @@ public class JavacSingularsRecipes {
protected abstract void generateSingularMethod(boolean deprecate, JavacTreeMaker maker, JCExpression returnType, JCStatement returnStatement, SingularData data, JavacNode builderType, JCTree source, boolean fluent);
- protected JCVariableDecl generateSingularMethodParameter(int typeIndex, JavacTreeMaker maker, SingularData data, JavacNode builderType, JCTree source, Name name, long flags) {
+ protected JCVariableDecl generateSingularMethodParameter(int typeIndex, JavacTreeMaker maker, SingularData data, JavacNode builderType, JCTree source, Name name) {
+ long flags = JavacHandlerUtil.addFinalIfNeeded(Flags.PARAMETER, builderType.getContext());
JCExpression type = cloneParamType(typeIndex, maker, data.getTypeArgs(), builderType, source);
List<JCAnnotation> typeUseAnns = getTypeUseAnnotations(type);
type = removeTypeUseAnnotations(type);