From 098e359d82be243786a7ab508e7ee521774c6cb2 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Mon, 29 Feb 2016 13:23:48 +0100 Subject: [PATCH] getExecutionStacks returns NotNull --- .../src/com/intellij/xdebugger/frame/XSuspendContext.java | 3 ++- .../intellij/plugins/xsltDebugger/impl/XsltDebugProcess.java | 1 + python/src/com/jetbrains/python/debugger/PySuspendContext.java | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/platform/xdebugger-api/src/com/intellij/xdebugger/frame/XSuspendContext.java b/platform/xdebugger-api/src/com/intellij/xdebugger/frame/XSuspendContext.java index 3bab97ebe14f..452f081d61e3 100644 --- a/platform/xdebugger-api/src/com/intellij/xdebugger/frame/XSuspendContext.java +++ b/platform/xdebugger-api/src/com/intellij/xdebugger/frame/XSuspendContext.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ public abstract class XSuspendContext { return null; } + @NotNull public XExecutionStack[] getExecutionStacks() { XExecutionStack executionStack = getActiveExecutionStack(); return executionStack != null ? new XExecutionStack[]{executionStack} : XExecutionStack.EMPTY_ARRAY; diff --git a/plugins/xslt-debugger/src/org/intellij/plugins/xsltDebugger/impl/XsltDebugProcess.java b/plugins/xslt-debugger/src/org/intellij/plugins/xsltDebugger/impl/XsltDebugProcess.java index b87939bc59c4..d601c9b28e4c 100644 --- a/plugins/xslt-debugger/src/org/intellij/plugins/xsltDebugger/impl/XsltDebugProcess.java +++ b/plugins/xslt-debugger/src/org/intellij/plugins/xsltDebugger/impl/XsltDebugProcess.java @@ -196,6 +196,7 @@ public class XsltDebugProcess extends XDebugProcess implements Disposable { return new XsltExecutionStack("Source Frames", mySourceFrame, myDebuggerSession); } + @NotNull @Override public XExecutionStack[] getExecutionStacks() { return new XExecutionStack[]{ diff --git a/python/src/com/jetbrains/python/debugger/PySuspendContext.java b/python/src/com/jetbrains/python/debugger/PySuspendContext.java index f962c3f4f48e..637171016633 100644 --- a/python/src/com/jetbrains/python/debugger/PySuspendContext.java +++ b/python/src/com/jetbrains/python/debugger/PySuspendContext.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2014 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ public class PySuspendContext extends XSuspendContext { return myActiveStack; } + @NotNull @Override public XExecutionStack[] getExecutionStacks() { final Collection threads = myDebugProcess.getThreads();