mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't suggest to add return type to constructor
This commit is contained in:
+2
-1
@@ -54,7 +54,8 @@ public class AddReturnTypeFix implements IntentionAction {
|
||||
|
||||
@Override
|
||||
public boolean isAvailable(@NotNull Project project, Editor editor, PsiFile file) {
|
||||
return findMethod(editor, file) != null;
|
||||
GrMethod method = findMethod(editor, file);
|
||||
return method != null && !method.isConstructor();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user