Skip to content

Commit

Permalink
Fix array indexing exception in PushDownRefactoringProcessor (#1759)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohnstn authored Oct 31, 2024
1 parent de6bdc9 commit 26bf480
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ public final boolean visit(MethodInvocation node) {
ListRewrite args= fRewrite.getListRewrite(node, MethodInvocation.ARGUMENTS_PROPERTY);
List<Type> originalArgsList= args.getOriginalList();
if (originalArgsList.size() > 0) {
ASTNode argsCopy= typeArgs.createCopyTarget(originalArgsList.get(0), originalArgsList.get(originalTypeList.size() - 1));
ASTNode argsCopy= typeArgs.createCopyTarget(originalArgsList.get(0), originalArgsList.get(originalArgsList.size() - 1));
superMethodInvocation.arguments().add(argsCopy);
}
fRewrite.replace(node, superMethodInvocation, null);
Expand Down

0 comments on commit 26bf480

Please sign in to comment.