Skip to content

Commit

Permalink
Updated source PsiFile parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
vaisakhkannan committed Oct 13, 2023
1 parent 4e2b899 commit d2f708b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public CodeAction resolveCodeAction(JavaCodeActionResolveContext context) {
final PsiMethod parentType = getBinding(node);

assert parentType != null;
ChangeCorrectionProposal proposal = new ModifyReturnTypeProposal(TITLE_MESSAGE, context.getCompilationUnit(),
ChangeCorrectionProposal proposal = new ModifyReturnTypeProposal(TITLE_MESSAGE, context.getSource().getCompilationUnit(),
context.getASTRoot(), parentType, 0, PsiPrimitiveType.VOID);
try {
WorkspaceEdit we = context.convertToWorkspaceEdit(proposal);
Expand Down

0 comments on commit d2f708b

Please sign in to comment.