mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 16:17:34 +00:00
trivial - Only assign variable once
This commit is contained in:
1 parent
eb78f5c766
commit
9f6c2203c9
1 file changed
+1
-4
@@ -1228,10 +1228,7 @@ public class JavacHandlerUtil {
|
||||
for (int i = 0; i < method.getParameters().size(); i++) {
|
||||
JCTree.JCVariableDecl param = method.getParameters().get(i);
|
||||
if (param.sym == null) {
|
||||
Type paramType = param.getType().type;
|
||||
if (paramTypes != null) {
|
||||
paramType = paramTypes.get(i);
|
||||
}
|
||||
Type paramType = paramTypes == null ? param.getType().type : paramTypes.get(i);
|
||||
VarSymbol varSymbol = new VarSymbol(param.mods.flags, param.name, paramType, symtab.noSymbol);
|
||||
List<JCAnnotation> annotations = param.getModifiers().getAnnotations();
|
||||
if (annotations != null && !annotations.isEmpty()) {
|
||||
|
||||
Reference in new issue
Block a user