diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/template/LiveTemplateTest.groovy b/java/java-tests/testSrc/com/intellij/codeInsight/template/LiveTemplateTest.groovy index cc50869bc886..3acb9845df66 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/template/LiveTemplateTest.groovy +++ b/java/java-tests/testSrc/com/intellij/codeInsight/template/LiveTemplateTest.groovy @@ -461,7 +461,7 @@ class Foo { } @Override - protected void invokeTestRunnable(final Runnable runnable) throws Exception { + protected void invokeTestRunnable(@NotNull final Runnable runnable) throws Exception { if (name in ["testNavigationActionsDontTerminateTemplate", "testTemplateWithEnd", "testDisappearingVar", "test escape string characters in soutv"]) { runnable.run(); return; diff --git a/java/java-tests/testSrc/com/intellij/navigation/ChooseByNameTest.groovy b/java/java-tests/testSrc/com/intellij/navigation/ChooseByNameTest.groovy index 6b97c59fbe59..dabe06ba79fa 100644 --- a/java/java-tests/testSrc/com/intellij/navigation/ChooseByNameTest.groovy +++ b/java/java-tests/testSrc/com/intellij/navigation/ChooseByNameTest.groovy @@ -23,6 +23,8 @@ import com.intellij.psi.PsiFile import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase import com.intellij.util.Consumer import com.intellij.util.concurrency.Semaphore +import org.jetbrains.annotations.NotNull + /** * @author peter */ @@ -240,7 +242,7 @@ class Intf { } @Override - protected void invokeTestRunnable(Runnable runnable) throws Exception { + protected void invokeTestRunnable(@NotNull Runnable runnable) throws Exception { runnable.run() } } diff --git a/java/java-tests/testSrc/com/intellij/psi/MiscPsiTest.java b/java/java-tests/testSrc/com/intellij/psi/MiscPsiTest.java index 301a99319cbb..096547c4f4db 100644 --- a/java/java-tests/testSrc/com/intellij/psi/MiscPsiTest.java +++ b/java/java-tests/testSrc/com/intellij/psi/MiscPsiTest.java @@ -25,10 +25,11 @@ import com.intellij.openapi.vfs.VirtualFile; import com.intellij.pom.java.LanguageLevel; import com.intellij.psi.impl.source.tree.LazyParseableElement; import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase; +import org.jetbrains.annotations.NotNull; public class MiscPsiTest extends LightCodeInsightFixtureTestCase { @Override - protected void invokeTestRunnable(final Runnable runnable) throws Exception { + protected void invokeTestRunnable(@NotNull final Runnable runnable) throws Exception { new WriteCommandAction.Simple(getProject()) { @Override protected void run() throws Throwable { diff --git a/java/testFramework/src/com/intellij/codeInsight/completion/CompletionAutoPopupTestCase.groovy b/java/testFramework/src/com/intellij/codeInsight/completion/CompletionAutoPopupTestCase.groovy index 9a05e8d3633c..30b9bfb30c01 100644 --- a/java/testFramework/src/com/intellij/codeInsight/completion/CompletionAutoPopupTestCase.groovy +++ b/java/testFramework/src/com/intellij/codeInsight/completion/CompletionAutoPopupTestCase.groovy @@ -19,6 +19,8 @@ import com.intellij.codeInsight.lookup.LookupManager import com.intellij.codeInsight.lookup.impl.LookupImpl import com.intellij.testFramework.fixtures.CompletionAutoPopupTester import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase +import org.jetbrains.annotations.NotNull + /** * @author peter */ @@ -38,7 +40,7 @@ abstract class CompletionAutoPopupTestCase extends LightCodeInsightFixtureTestCa return false; } - @Override protected void invokeTestRunnable(Runnable runnable) { + @Override protected void invokeTestRunnable(@NotNull Runnable runnable) { myTester.runWithAutoPopupEnabled(runnable) } diff --git a/plugins/groovy/test/org/jetbrains/plugins/groovy/compiler/GroovyDebuggerTest.groovy b/plugins/groovy/test/org/jetbrains/plugins/groovy/compiler/GroovyDebuggerTest.groovy index cd1dffb719c3..df7d578ea99b 100644 --- a/plugins/groovy/test/org/jetbrains/plugins/groovy/compiler/GroovyDebuggerTest.groovy +++ b/plugins/groovy/test/org/jetbrains/plugins/groovy/compiler/GroovyDebuggerTest.groovy @@ -54,6 +54,7 @@ import com.intellij.testFramework.builders.JavaModuleFixtureBuilder import com.intellij.testFramework.fixtures.impl.TempDirTestFixtureImpl import com.intellij.util.SystemProperties import com.intellij.util.concurrency.Semaphore +import org.jetbrains.annotations.NotNull /** * @author peter @@ -74,7 +75,7 @@ class GroovyDebuggerTest extends GroovyCompilerTestCase { } @Override - protected void invokeTestRunnable(Runnable runnable) { + protected void invokeTestRunnable(@NotNull Runnable runnable) { runnable.run() } diff --git a/plugins/maven/src/test/java/org/jetbrains/idea/maven/MavenTestCase.java b/plugins/maven/src/test/java/org/jetbrains/idea/maven/MavenTestCase.java index c959b6eb800f..e67a69f3e4c0 100644 --- a/plugins/maven/src/test/java/org/jetbrains/idea/maven/MavenTestCase.java +++ b/plugins/maven/src/test/java/org/jetbrains/idea/maven/MavenTestCase.java @@ -237,7 +237,7 @@ public abstract class MavenTestCase extends UsefulTestCase { } @Override - protected void invokeTestRunnable(Runnable runnable) throws Exception { + protected void invokeTestRunnable(@NotNull Runnable runnable) throws Exception { runnable.run(); } diff --git a/python/testSrc/com/jetbrains/python/PythonAutoPopupTest.java b/python/testSrc/com/jetbrains/python/PythonAutoPopupTest.java index 6daf6dee059c..0df52f86f14d 100644 --- a/python/testSrc/com/jetbrains/python/PythonAutoPopupTest.java +++ b/python/testSrc/com/jetbrains/python/PythonAutoPopupTest.java @@ -18,6 +18,7 @@ package com.jetbrains.python; import com.intellij.codeInsight.lookup.impl.LookupImpl; import com.intellij.testFramework.fixtures.CompletionAutoPopupTester; import com.jetbrains.python.fixtures.PyTestCase; +import org.jetbrains.annotations.NotNull; /** * @author peter @@ -39,7 +40,7 @@ public class PythonAutoPopupTest extends PyTestCase { } @Override - protected void invokeTestRunnable(Runnable runnable) throws Exception { + protected void invokeTestRunnable(@NotNull Runnable runnable) throws Exception { myTester.runWithAutoPopupEnabled(runnable); } diff --git a/xml/dom-tests/tests/com/intellij/util/xml/DomBasicsTest.java b/xml/dom-tests/tests/com/intellij/util/xml/DomBasicsTest.java index 630ad79f03d0..bd69d041ed41 100644 --- a/xml/dom-tests/tests/com/intellij/util/xml/DomBasicsTest.java +++ b/xml/dom-tests/tests/com/intellij/util/xml/DomBasicsTest.java @@ -30,6 +30,7 @@ import com.intellij.util.xml.reflect.DomAttributeChildDescription; import com.intellij.util.xml.reflect.DomCollectionChildDescription; import com.intellij.util.xml.reflect.DomFixedChildDescription; import com.intellij.util.xml.reflect.DomGenericInfo; +import org.jetbrains.annotations.NotNull; import java.lang.reflect.ParameterizedType; import java.util.*; @@ -39,7 +40,7 @@ import java.util.*; */ public class DomBasicsTest extends DomTestCase { @Override - protected void invokeTestRunnable(final Runnable runnable) throws Exception { + protected void invokeTestRunnable(@NotNull final Runnable runnable) throws Exception { new WriteCommandAction.Simple(null) { @Override protected void run() throws Throwable {