mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
restore suggestion to remove 'abstract' when method has body
This commit is contained in:
@@ -915,7 +915,7 @@ public class HighlightMethodUtil {
|
||||
if (!hasNoBody) {
|
||||
QuickFixAction.registerQuickFixAction(info, new DeleteMethodBodyFix(method));
|
||||
}
|
||||
if (method.hasModifierProperty(PsiModifier.ABSTRACT) && isInterface) {
|
||||
if (method.hasModifierProperty(PsiModifier.ABSTRACT) && !isInterface) {
|
||||
QuickFixAction.registerQuickFixAction(info, QUICK_FIX_FACTORY.createModifierListFix(method, PsiModifier.ABSTRACT, false, false));
|
||||
}
|
||||
for (IntentionAction intentionAction : additionalFixes) {
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Make 'a' not abstract" "true"
|
||||
import java.io.*;
|
||||
|
||||
abstract class A {
|
||||
void a<caret>() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Make 'a' not abstract" "true"
|
||||
import java.io.*;
|
||||
|
||||
abstract class A {
|
||||
abstract void a<caret>() {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user