Skip to content

Commit

Permalink
Refatoring FilterImplementationQuickFix and ListenerImplmentationQuic…
Browse files Browse the repository at this point in the history
…kFix and wrote test cases for same
  • Loading branch information
dessina-devasia committed Oct 12, 2023
1 parent 8476a93 commit f471331
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public List<? extends CodeAction> getCodeActions(JavaCodeActionContext context,
List<CodeAction> codeActions = new ArrayList<>();
PsiElement node = context.getCoveredNode();
PsiClass parentType = getBinding(node);

if (parentType != null) {
String title = Messages.getMessage("LetClassImplement",
parentType.getName(),
Expand All @@ -75,7 +74,6 @@ public CodeAction resolveCodeAction(JavaCodeActionResolveContext context) {
final CodeAction toResolve = context.getUnresolved();
final PsiElement node = context.getCoveredNode();
final PsiClass parentType = getBinding(node);
//final PsiMethod parentMethod = PsiTreeUtil.getParentOfType(node, PsiMethod.class);

assert parentType != null;
ChangeCorrectionProposal proposal = new ImplementInterfaceProposal(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public CodeAction resolveCodeAction(JavaCodeActionResolveContext context) {
final CodeAction toResolve = context.getUnresolved();
final PsiElement node = context.getCoveredNode();
final PsiClass parentType = getBinding(node);
//final PsiMethod parentMethod = PsiTreeUtil.getParentOfType(node, PsiMethod.class);
String interfaceType = (String) context.get("interface");

assert parentType != null;
Expand Down

0 comments on commit f471331

Please sign in to comment.