trivial - Only assign variable once

This commit is contained in:
Roel Spilker committed 2020-08-27 23:15:11 +02:00
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()) {