From 6a8741a9918b5606c83c8664d70697fa40fcd22c Mon Sep 17 00:00:00 2001 From: Alexey Merkulov Date: Wed, 27 Mar 2024 12:54:37 +0100 Subject: [PATCH] [debugger] Minor IJ-MR-129983 fixes GitOrigin-RevId: 2c9184caf508393271019dea64405ca4da368da5 --- .../com/intellij/debugger/engine/SuspendContextImpl.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/engine/SuspendContextImpl.java b/java/debugger/impl/src/com/intellij/debugger/engine/SuspendContextImpl.java index 16b19c4fc283..6ee7db009e04 100644 --- a/java/debugger/impl/src/com/intellij/debugger/engine/SuspendContextImpl.java +++ b/java/debugger/impl/src/com/intellij/debugger/engine/SuspendContextImpl.java @@ -88,12 +88,8 @@ public abstract class SuspendContextImpl extends XSuspendContext implements Susp if (myThread == threadProxy) { return; } - if (myEvaluationContext != null) { - LOG.error("Resetting thread during evaluation is not supported"); - } - if (myActiveExecutionStack != null) { - LOG.error("Thread should be retested before the active execution stack initialization"); - } + LOG.assertTrue(myEvaluationContext == null, "Resetting thread during evaluation is not supported"); + LOG.assertTrue(myActiveExecutionStack == null, "Thread should be retested before the active execution stack initialization"); assertNotResumed(); if (myThread != null) { myThread.removeListener(myListener);