From b12ba9273ca3bbe65a2456be971cf7124146924d Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Mon, 27 Mar 2017 16:08:39 +0300 Subject: [PATCH] cleanup: do not use deprecated method --- .../com/intellij/debugger/engine/JavaValue.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/engine/JavaValue.java b/java/debugger/impl/src/com/intellij/debugger/engine/JavaValue.java index 715082613852..b3c1b492fcd9 100644 --- a/java/debugger/impl/src/com/intellij/debugger/engine/JavaValue.java +++ b/java/debugger/impl/src/com/intellij/debugger/engine/JavaValue.java @@ -141,7 +141,7 @@ public class JavaValue extends XNamedValue implements NodeDescriptorProvider, XV } @Override - public void contextAction() throws Exception { + public void contextAction(@NotNull SuspendContextImpl suspendContext) throws Exception { if (node.isObsolete()) { return; } @@ -219,7 +219,7 @@ public class JavaValue extends XNamedValue implements NodeDescriptorProvider, XV } @Override - public void contextAction() throws Exception { + public void contextAction(@NotNull SuspendContextImpl suspendContext) throws Exception { if (callback.isObsolete()) return; evaluate(callback); } @@ -346,7 +346,7 @@ public class JavaValue extends XNamedValue implements NodeDescriptorProvider, XV } @Override - public void contextAction() throws Exception { + public void contextAction(@NotNull SuspendContextImpl suspendContext) throws Exception { final XValueChildrenList children = new XValueChildrenList(); final NodeRenderer renderer = myValueDescriptor.getRenderer(myEvaluationContext.getDebugProcess()); final Ref remainingNum = new Ref<>(0); @@ -408,11 +408,11 @@ public class JavaValue extends XNamedValue implements NodeDescriptorProvider, XV } evaluationContext.getManagerThread().schedule(new SuspendContextCommandImpl(command.getSuspendContext()) { @Override - public void contextAction() throws Exception { + public void contextAction(@NotNull SuspendContextImpl suspendContext) throws Exception { if (node.isObsolete()) { return; } - command.contextAction(); + command.contextAction(suspendContext); } @Override @@ -441,7 +441,7 @@ public class JavaValue extends XNamedValue implements NodeDescriptorProvider, XV } @Override - public void contextAction() throws Exception { + public void contextAction(@NotNull SuspendContextImpl suspendContext) throws Exception { ApplicationManager.getApplication().runReadAction(() -> { SourcePosition position = SourcePositionProvider.getSourcePosition(myValueDescriptor, getProject(), getDebuggerContext(), false); if (position != null) { @@ -520,7 +520,7 @@ public class JavaValue extends XNamedValue implements NodeDescriptorProvider, XV } @Override - public void contextAction() throws Exception { + public void contextAction(@NotNull SuspendContextImpl suspendContext) throws Exception { evaluationExpression = ApplicationManager.getApplication().runReadAction(new Computable() { @Override public XExpression compute() {