From b0437beb7ea36d99be27ab7e408f77e7d9b113cc Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Mon, 13 Apr 2015 19:17:18 +0200 Subject: [PATCH] test notification: make @Nullable contract visible --- .../execution/testframework/TestStatusListener.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/platform/testRunner/src/com/intellij/execution/testframework/TestStatusListener.java b/platform/testRunner/src/com/intellij/execution/testframework/TestStatusListener.java index 08130de9b495..06a1bf5e4122 100644 --- a/platform/testRunner/src/com/intellij/execution/testframework/TestStatusListener.java +++ b/platform/testRunner/src/com/intellij/execution/testframework/TestStatusListener.java @@ -18,13 +18,14 @@ package com.intellij.execution.testframework; import com.intellij.openapi.extensions.ExtensionPointName; import com.intellij.openapi.extensions.Extensions; import com.intellij.openapi.project.Project; +import org.jetbrains.annotations.Nullable; public abstract class TestStatusListener { public static final ExtensionPointName EP_NAME = ExtensionPointName.create("com.intellij.testStatusListener"); - public abstract void testSuiteFinished(AbstractTestProxy root); + public abstract void testSuiteFinished(@Nullable AbstractTestProxy root); - public void testSuiteFinished(AbstractTestProxy root, Project project) { + public void testSuiteFinished(@Nullable AbstractTestProxy root, Project project) { testSuiteFinished(root); } @@ -36,7 +37,7 @@ public abstract class TestStatusListener { } } - public static void notifySuiteFinished(AbstractTestProxy root, Project project) { + public static void notifySuiteFinished(@Nullable AbstractTestProxy root, Project project) { for (TestStatusListener statusListener : Extensions.getExtensions(EP_NAME)) { statusListener.testSuiteFinished(root, project); }