mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Removed experimental status from blocking methods inspection checkers
GitOrigin-RevId: 98ac7b1c96cca54e7869b70e8fea8a10e82e0b18
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4d39f8c27a
commit
a8b9bd0500
@@ -1,10 +1,11 @@
|
||||
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.codeInspection.blockingCallsDetection;
|
||||
|
||||
import com.intellij.codeInspection.LocalQuickFix;
|
||||
import com.intellij.openapi.extensions.ExtensionPointName;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import com.intellij.psi.PsiMethod;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
@@ -12,7 +13,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
* <p>
|
||||
* Frameworks could implement this EP to provide such information based on framework-specific heuristics or markers.
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public interface BlockingMethodChecker {
|
||||
ExtensionPointName<BlockingMethodChecker> EP_NAME = ExtensionPointName.create("com.intellij.codeInsight.blockingMethodChecker");
|
||||
|
||||
@@ -22,4 +22,13 @@ public interface BlockingMethodChecker {
|
||||
boolean isApplicable(@NotNull PsiFile file);
|
||||
|
||||
boolean isMethodBlocking(@NotNull PsiMethod method);
|
||||
|
||||
/**
|
||||
* @param element PsiElement (e.g. method call or reference) which is located in "non-blocking" code fragment
|
||||
* @return empty array or null if cannot provide any fixes, non-empty array of quick fixes otherwise
|
||||
*/
|
||||
@NotNull
|
||||
default LocalQuickFix[] getQuickFixesFor(@NotNull PsiElement element) {
|
||||
return LocalQuickFix.EMPTY_ARRAY;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
* <p>
|
||||
* Frameworks could implement this EP to provide information that in some contexts the execution thread should not be blocked.
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public interface NonBlockingContextChecker {
|
||||
ExtensionPointName<NonBlockingContextChecker> EP_NAME = ExtensionPointName.create("com.intellij.codeInsight.nonBlockingContextChecker");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user