diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-12-04 07:14:05 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-12-11 22:40:48 +0100 |
commit | 7e21683515144cc6127eff007226c86021b7b2df (patch) | |
tree | 2132f4af507afbc5c785bb392c2d3fdbb02e812d /src/core/lombok/javac/handlers/HandleDelegate.java | |
parent | 9639bc2ff466e94f629d81ff00d8cab654f3ab19 (diff) | |
download | lombok-7e21683515144cc6127eff007226c86021b7b2df.tar.gz lombok-7e21683515144cc6127eff007226c86021b7b2df.tar.bz2 lombok-7e21683515144cc6127eff007226c86021b7b2df.zip |
Added format preferences: Suppress @SuppressWarnings, suppress needless application of 'final'.
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleDelegate.java')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleDelegate.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/HandleDelegate.java b/src/core/lombok/javac/handlers/HandleDelegate.java index 1073541f..e306460f 100644 --- a/src/core/lombok/javac/handlers/HandleDelegate.java +++ b/src/core/lombok/javac/handlers/HandleDelegate.java @@ -305,7 +305,8 @@ public class HandleDelegate extends JavacAnnotationHandler<Delegate> { int idx = 0; for (TypeMirror param : sig.type.getParameterTypes()) { - JCModifiers paramMods = maker.Modifiers(Flags.FINAL | Flags.PARAMETER); + long flags = JavacHandlerUtil.addFinalIfNeeded(Flags.PARAMETER, annotation.getContext()); + JCModifiers paramMods = maker.Modifiers(flags); String[] paramNames = sig.getParameterNames(); Name name = annotation.toName(paramNames[idx++]); params.append(maker.VarDef(paramMods, name, JavacResolution.typeToJCTree((Type) param, annotation.getAst(), true), null)); |