mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
[java] cleanup: remove unused deprecated API (IDEA-295370)
GitOrigin-RevId: c8370b89546b74bf94c6c6d249d7cdd34233c7a4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
198053fd59
commit
07946fb1dd
@@ -4,7 +4,6 @@ package com.intellij.codeInspection.blockingCallsDetection;
|
||||
import com.intellij.codeInspection.blockingCallsDetection.ContextType.Blocking;
|
||||
import com.intellij.codeInspection.blockingCallsDetection.ContextType.NonBlocking;
|
||||
import com.intellij.openapi.extensions.ExtensionPointName;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -28,19 +27,6 @@ public interface NonBlockingContextChecker {
|
||||
* {@link Blocking#INSTANCE} otherwise
|
||||
*/
|
||||
default ContextType computeContextType(@NotNull ElementContext elementContext) {
|
||||
if (isContextNonBlockingFor(elementContext.getElement())) {
|
||||
return NonBlocking.INSTANCE;
|
||||
}
|
||||
else {
|
||||
return Blocking.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Override {@link #computeContextType(ElementContext)} instead.
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
default boolean isContextNonBlockingFor(@NotNull PsiElement element) {
|
||||
return false;
|
||||
return Blocking.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user