Skip to content

Commit

Permalink
Trivial refactoring: extract variable
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellansun committed Jan 4, 2025
1 parent 015fda4 commit c4a4754
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,9 @@ private Parameter[] createParametersWithExactType(final LambdaExpression express
Parameter[] lambdaParameters = getParametersSafe(expression);
ClassNode[] lambdaParamTypes = expression.getNodeMetaData(CLOSURE_ARGUMENTS);
for (int i = 0, n = lambdaParameters.length; i < n; i += 1) {
ClassNode resolvedType = convertParameterType(targetParameters[i].getType(), lambdaParameters[i].getType(), lambdaParamTypes[i]);
lambdaParameters[i].setType(resolvedType);
final Parameter lambdaParameter = lambdaParameters[i];
ClassNode resolvedType = convertParameterType(targetParameters[i].getType(), lambdaParameter.getType(), lambdaParamTypes[i]);
lambdaParameter.setType(resolvedType);
}
return lambdaParameters;
}
Expand Down

0 comments on commit c4a4754

Please sign in to comment.