[java debugger] cleanup: delete unused deprecated API (IDEA-271555)

GitOrigin-RevId: e26658f61425659395a23f032dbc9fbb17c74137
This commit is contained in:
Nikolay Chashnikov
2021-10-07 07:55:12 +00:00
committed by intellij-monorepo-bot
parent 3e174316d2
commit 4c181e05ff
6 changed files with 3 additions and 32 deletions
@@ -9,7 +9,6 @@ import com.intellij.debugger.jdi.ThreadReferenceProxyImpl;
import com.intellij.openapi.diagnostic.Logger;
import com.sun.jdi.ObjectCollectedException;
import com.sun.jdi.ThreadReference;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -84,17 +83,5 @@ public abstract class DebuggerContextCommandImpl extends SuspendContextCommandIm
}
}
/**
* @deprecated override {@link #threadAction(SuspendContextImpl)}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
public void threadAction() {
throw new AbstractMethodError();
}
public void threadAction(@NotNull SuspendContextImpl suspendContext) {
//noinspection deprecation
threadAction();
}
public abstract void threadAction(@NotNull SuspendContextImpl suspendContext);
}
@@ -362,15 +362,6 @@ public abstract class DebuggerUtilsEx extends DebuggerUtils {
}
}
/**
* @deprecated use {@link EvaluationContext#keep(Value)} directly
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
public static void keep(Value value, EvaluationContext context) {
context.keep(value);
}
public static StringReference mirrorOfString(@NotNull String s, VirtualMachineProxyImpl virtualMachineProxy, EvaluationContext context)
throws EvaluateException {
return context.computeAndKeep(() -> virtualMachineProxy.mirrorOf(s));
@@ -344,7 +344,7 @@ public abstract class DebuggerTree extends DnDAwareTree implements DataProvider,
}
@Override
public void threadAction() {
public void threadAction(@NotNull SuspendContextImpl suspendContext) {
ThreadDescriptorImpl threadDescriptor = ((ThreadDescriptorImpl)myNode.getDescriptor());
ThreadReferenceProxyImpl threadProxy = threadDescriptor.getThreadReference();
if (!threadProxy.isCollected() && getDebuggerContext().getDebugProcess().getSuspendManager().isSuspended(threadProxy)) {
@@ -190,7 +190,7 @@ trait DebuggerMethods extends CompilerMethods {
}
@Override
void threadAction() {
void threadAction(@NotNull SuspendContextImpl suspendContext) {
try {
myResult = myAction()
}
@@ -49,9 +49,5 @@ interface DslFactory {
fun updateTime(): Expression
@Deprecated("use createPeekCall(GenericType, Lambda): IntermediateStreamCall instead")
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
fun createPeekCall(elementsType: GenericType, lambda: String): IntermediateStreamCall
fun createPeekCall(elementType: GenericType, lambda: Lambda): IntermediateStreamCall
}
@@ -64,9 +64,6 @@ class DslImpl(private val statementFactory: StatementFactory) : Dsl {
override fun updateTime(): Expression = statementFactory.updateCurrentTimeExpression()
override fun createPeekCall(elementsType: GenericType, lambda: String): IntermediateStreamCall =
statementFactory.createPeekCall(elementsType, lambda)
override fun createPeekCall(elementType: GenericType, lambda: Lambda): IntermediateStreamCall =
statementFactory.createPeekCall(elementType, lambda)