diff --git a/java/execution/impl/src/com/intellij/execution/jar/JarApplicationConfigurationType.java b/java/execution/impl/src/com/intellij/execution/jar/JarApplicationConfigurationType.java index 8c7fdebc8c52..b8205594773e 100644 --- a/java/execution/impl/src/com/intellij/execution/jar/JarApplicationConfigurationType.java +++ b/java/execution/impl/src/com/intellij/execution/jar/JarApplicationConfigurationType.java @@ -1,17 +1,5 @@ /* - * Copyright 2000-2014 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package com.intellij.execution.jar; @@ -46,6 +34,7 @@ public class JarApplicationConfigurationType extends ConfigurationTypeBase imple } } + @NotNull public RunConfiguration createTemplateConfiguration(Project project) { return new JarApplicationConfiguration(project, this, ""); } diff --git a/java/execution/impl/src/com/intellij/execution/remote/RemoteConfigurationType.java b/java/execution/impl/src/com/intellij/execution/remote/RemoteConfigurationType.java index 9028a51f8df0..87754d736a5e 100644 --- a/java/execution/impl/src/com/intellij/execution/remote/RemoteConfigurationType.java +++ b/java/execution/impl/src/com/intellij/execution/remote/RemoteConfigurationType.java @@ -1,17 +1,5 @@ /* - * Copyright 2000-2009 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ /* @@ -37,6 +25,7 @@ public class RemoteConfigurationType implements ConfigurationType { /**reflection*/ public RemoteConfigurationType() { myFactory = new ConfigurationFactory(this) { + @NotNull public RunConfiguration createTemplateConfiguration(Project project) { return new RemoteConfiguration(project, this); } diff --git a/java/execution/impl/src/com/intellij/execution/scratch/JavaScratchConfigurationProducer.java b/java/execution/impl/src/com/intellij/execution/scratch/JavaScratchConfigurationProducer.java index 6f61b9fae575..d6badb91cd6c 100644 --- a/java/execution/impl/src/com/intellij/execution/scratch/JavaScratchConfigurationProducer.java +++ b/java/execution/impl/src/com/intellij/execution/scratch/JavaScratchConfigurationProducer.java @@ -18,6 +18,7 @@ import com.intellij.openapi.vfs.VirtualFileWithId; import com.intellij.psi.PsiClass; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiFile; +import org.jetbrains.annotations.NotNull; /** * @author Eugene Zhuravlev @@ -45,7 +46,7 @@ public class JavaScratchConfigurationProducer extends AbstractApplicationConfigu } @Override - public boolean shouldReplace(ConfigurationFromContext self, ConfigurationFromContext other) { + public boolean shouldReplace(@NotNull ConfigurationFromContext self, @NotNull ConfigurationFromContext other) { return other.isProducedBy(AbstractApplicationConfigurationProducer.class) && !other.isProducedBy(JavaScratchConfigurationProducer.class); } diff --git a/platform/lang-api/src/com/intellij/execution/actions/RunConfigurationProducer.java b/platform/lang-api/src/com/intellij/execution/actions/RunConfigurationProducer.java index 578ac7bd947b..c5de5e85dd02 100644 --- a/platform/lang-api/src/com/intellij/execution/actions/RunConfigurationProducer.java +++ b/platform/lang-api/src/com/intellij/execution/actions/RunConfigurationProducer.java @@ -1,17 +1,5 @@ /* - * Copyright 2000-2017 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package com.intellij.execution.actions; @@ -46,7 +34,6 @@ public abstract class RunConfigurationProducer { public static List> getProducers(@NotNull Project project) { RunConfigurationProducerService runConfigurationProducerService = RunConfigurationProducerService.getInstance(project); RunConfigurationProducer[] allProducers = Extensions.getExtensions(EP_NAME); - List> result = ContainerUtil.newArrayListWithCapacity(allProducers.length); for (RunConfigurationProducer producer : allProducers) { if (!runConfigurationProducerService.isIgnored(producer)) { @@ -87,6 +74,7 @@ public abstract class RunConfigurationProducer { final RunnerAndConfigurationSettings settings = cloneTemplateConfiguration(context); Ref ref = new Ref<>(context.getPsiLocation()); try { + //noinspection unchecked if (!setupConfigurationFromContext((T)settings.getConfiguration(), context, ref)) { return null; } @@ -207,6 +195,7 @@ public abstract class RunConfigurationProducer { final RunManager runManager = RunManager.getInstance(context.getProject()); final List configurations = getConfigurationSettingsList(runManager); for (RunnerAndConfigurationSettings configurationSettings : configurations) { + //noinspection unchecked if (isConfigurationFromContext((T) configurationSettings.getConfiguration(), context)) { return configurationSettings; } diff --git a/platform/lang-api/src/com/intellij/execution/configurations/ConfigurationFactory.java b/platform/lang-api/src/com/intellij/execution/configurations/ConfigurationFactory.java index a63a6a672c53..b338416f1b2a 100644 --- a/platform/lang-api/src/com/intellij/execution/configurations/ConfigurationFactory.java +++ b/platform/lang-api/src/com/intellij/execution/configurations/ConfigurationFactory.java @@ -1,17 +1,5 @@ /* - * Copyright 2000-2009 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package com.intellij.execution.configurations; @@ -28,9 +16,7 @@ import javax.swing.*; /** * Factory for run configuration instances. - * * @see com.intellij.execution.configurations.ConfigurationType#getConfigurationFactories() - * @author dyoma */ public abstract class ConfigurationFactory { public static final Icon ADD_ICON = IconUtil.getAddIcon(); @@ -118,8 +104,6 @@ public abstract class ConfigurationFactory { /** * In this method you can configure defaults for the task, which are preferable to be used for your particular configuration type - * @param providerID - * @param task */ public void configureBeforeRunTaskDefaults(Key providerID, BeforeRunTask task) { } diff --git a/platform/lang-impl/src/com/intellij/execution/compound/CompoundRunConfigurationType.java b/platform/lang-impl/src/com/intellij/execution/compound/CompoundRunConfigurationType.java index 6cad1e312318..07972d85f039 100644 --- a/platform/lang-impl/src/com/intellij/execution/compound/CompoundRunConfigurationType.java +++ b/platform/lang-impl/src/com/intellij/execution/compound/CompoundRunConfigurationType.java @@ -1,17 +1,5 @@ /* - * Copyright 2000-2015 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package com.intellij.execution.compound; @@ -22,6 +10,7 @@ import com.intellij.execution.configurations.RunConfiguration; import com.intellij.icons.AllIcons; import com.intellij.openapi.project.Project; import com.intellij.ui.LayeredIcon; +import org.jetbrains.annotations.NotNull; public class CompoundRunConfigurationType extends ConfigurationTypeBase { @@ -35,6 +24,7 @@ public class CompoundRunConfigurationType extends ConfigurationTypeBase { "It runs batch of run configurations at once", LayeredIcon.create(AllIcons.Nodes.Folder, AllIcons.Nodes.RunnableMark)); addFactory(new ConfigurationFactory(this) { + @NotNull @Override public RunConfiguration createTemplateConfiguration(Project project) { return new CompoundRunConfiguration(project, CompoundRunConfigurationType.this, "Compound Run Configuration"); diff --git a/plugins/ant/src/com/intellij/lang/ant/config/execution/AntRunConfigurationType.java b/plugins/ant/src/com/intellij/lang/ant/config/execution/AntRunConfigurationType.java index d5dde7d05a08..770cc29f7098 100644 --- a/plugins/ant/src/com/intellij/lang/ant/config/execution/AntRunConfigurationType.java +++ b/plugins/ant/src/com/intellij/lang/ant/config/execution/AntRunConfigurationType.java @@ -1,17 +1,5 @@ /* - * Copyright 2000-2014 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package com.intellij.lang.ant.config.execution; @@ -27,6 +15,7 @@ import javax.swing.*; public class AntRunConfigurationType implements ConfigurationType { private final ConfigurationFactory myFactory = new ConfigurationFactory(this) { + @NotNull @Override public RunConfiguration createTemplateConfiguration(Project project) { return new AntRunConfiguration(project, this, ""); diff --git a/plugins/gradle/src/org/jetbrains/plugins/gradle/execution/test/runner/GradleTestRunConfigurationProducer.java b/plugins/gradle/src/org/jetbrains/plugins/gradle/execution/test/runner/GradleTestRunConfigurationProducer.java index 81528988115d..de9bebd98b56 100644 --- a/plugins/gradle/src/org/jetbrains/plugins/gradle/execution/test/runner/GradleTestRunConfigurationProducer.java +++ b/plugins/gradle/src/org/jetbrains/plugins/gradle/execution/test/runner/GradleTestRunConfigurationProducer.java @@ -1,17 +1,5 @@ /* - * Copyright 2000-2015 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package org.jetbrains.plugins.gradle.execution.test.runner; @@ -65,7 +53,7 @@ public abstract class GradleTestRunConfigurationProducer extends RunConfiguratio } @Override - public boolean shouldReplace(ConfigurationFromContext self, ConfigurationFromContext other) { + public boolean shouldReplace(@NotNull ConfigurationFromContext self, @NotNull ConfigurationFromContext other) { return GradleSystemRunningSettings.getInstance().getPreferredTestRunner() == GRADLE_TEST_RUNNER; } diff --git a/plugins/gradle/src/org/jetbrains/plugins/gradle/execution/test/runner/TestClassGradleConfigurationProducer.java b/plugins/gradle/src/org/jetbrains/plugins/gradle/execution/test/runner/TestClassGradleConfigurationProducer.java index cddccda6e37e..e5ff90716076 100644 --- a/plugins/gradle/src/org/jetbrains/plugins/gradle/execution/test/runner/TestClassGradleConfigurationProducer.java +++ b/plugins/gradle/src/org/jetbrains/plugins/gradle/execution/test/runner/TestClassGradleConfigurationProducer.java @@ -1,17 +1,5 @@ /* - * Copyright 2000-2017 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package org.jetbrains.plugins.gradle.execution.test.runner; @@ -133,7 +121,7 @@ public class TestClassGradleConfigurationProducer extends GradleTestRunConfigura } @Override - public void onFirstRun(final ConfigurationFromContext fromContext, final ConfigurationContext context, @NotNull final Runnable performRunnable) { + public void onFirstRun(@NotNull final ConfigurationFromContext fromContext, @NotNull final ConfigurationContext context, @NotNull final Runnable performRunnable) { final InheritorChooser inheritorChooser = new InheritorChooser() { @Override protected void runForClasses(List classes, PsiMethod method, ConfigurationContext context, Runnable performRunnable) { diff --git a/plugins/gradle/src/org/jetbrains/plugins/gradle/execution/test/runner/TestMethodGradleConfigurationProducer.java b/plugins/gradle/src/org/jetbrains/plugins/gradle/execution/test/runner/TestMethodGradleConfigurationProducer.java index ca919e45ce64..d3b41d0567d9 100644 --- a/plugins/gradle/src/org/jetbrains/plugins/gradle/execution/test/runner/TestMethodGradleConfigurationProducer.java +++ b/plugins/gradle/src/org/jetbrains/plugins/gradle/execution/test/runner/TestMethodGradleConfigurationProducer.java @@ -1,17 +1,5 @@ /* - * Copyright 2000-2017 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package org.jetbrains.plugins.gradle.execution.test.runner; @@ -112,7 +100,7 @@ public class TestMethodGradleConfigurationProducer extends GradleTestRunConfigur } @Override - public void onFirstRun(final ConfigurationFromContext fromContext, final ConfigurationContext context, @NotNull final Runnable performRunnable) { + public void onFirstRun(@NotNull final ConfigurationFromContext fromContext, @NotNull final ConfigurationContext context, @NotNull final Runnable performRunnable) { final PsiMethod psiMethod = (PsiMethod)fromContext.getSourceElement(); final PsiClass containingClass = psiMethod.getContainingClass(); final InheritorChooser inheritorChooser = new InheritorChooser() { diff --git a/plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/MavenRunConfigurationType.java b/plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/MavenRunConfigurationType.java index bada6c044354..ddd95737d573 100644 --- a/plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/MavenRunConfigurationType.java +++ b/plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/MavenRunConfigurationType.java @@ -1,17 +1,5 @@ /* - * Copyright 2000-2009 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package org.jetbrains.idea.maven.execution; @@ -59,11 +47,13 @@ public class MavenRunConfigurationType implements ConfigurationType { */ MavenRunConfigurationType() { myFactory = new ConfigurationFactory(this) { + @NotNull @Override public RunConfiguration createTemplateConfiguration(Project project) { return new MavenRunConfiguration(project, this, ""); } + @NotNull @Override public RunConfiguration createTemplateConfiguration(Project project, RunManager runManager) { return new MavenRunConfiguration(project, this, ""); diff --git a/plugins/testng/src/com/theoryinpractice/testng/configuration/TestNGConfigurationType.java b/plugins/testng/src/com/theoryinpractice/testng/configuration/TestNGConfigurationType.java index ef3860f713a0..826681392cbd 100644 --- a/plugins/testng/src/com/theoryinpractice/testng/configuration/TestNGConfigurationType.java +++ b/plugins/testng/src/com/theoryinpractice/testng/configuration/TestNGConfigurationType.java @@ -1,17 +1,5 @@ /* - * Copyright 2000-2017 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package com.theoryinpractice.testng.configuration; @@ -39,6 +27,7 @@ public class TestNGConfigurationType implements ConfigurationType { myFactory = new ConfigurationFactoryEx(this) { + @NotNull @Override public RunConfiguration createTemplateConfiguration(Project project) { return new TestNGConfiguration("", project, this); diff --git a/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/run/XsltRunConfigType.java b/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/run/XsltRunConfigType.java index 4a02a04aea53..9dd4ff122162 100644 --- a/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/run/XsltRunConfigType.java +++ b/plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/run/XsltRunConfigType.java @@ -64,6 +64,7 @@ public class XsltRunConfigType implements ConfigurationType { super(type); } + @NotNull public RunConfiguration createTemplateConfiguration(final Project project) { return new XsltRunConfiguration(project, this); } diff --git a/python/python-rest/src/com/jetbrains/rest/run/RestRunConfigurationType.java b/python/python-rest/src/com/jetbrains/rest/run/RestRunConfigurationType.java index 0ffb43dadc84..b706318e8e87 100644 --- a/python/python-rest/src/com/jetbrains/rest/run/RestRunConfigurationType.java +++ b/python/python-rest/src/com/jetbrains/rest/run/RestRunConfigurationType.java @@ -1,17 +1,5 @@ /* - * Copyright 2000-2014 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package com.jetbrains.rest.run; @@ -81,6 +69,7 @@ public class RestRunConfigurationType implements ConfigurationType { super(type, "Docutils task"); } + @NotNull public RunConfiguration createTemplateConfiguration(Project project) { return new DocutilsRunConfiguration(project, this); } @@ -91,6 +80,7 @@ public class RestRunConfigurationType implements ConfigurationType { super(type, "Sphinx task"); } + @NotNull public RunConfiguration createTemplateConfiguration(Project project) { return new SphinxRunConfiguration(project, this); } diff --git a/python/src/com/jetbrains/python/run/PythonConfigurationType.java b/python/src/com/jetbrains/python/run/PythonConfigurationType.java index b51feea0f72c..661be533261f 100644 --- a/python/src/com/jetbrains/python/run/PythonConfigurationType.java +++ b/python/src/com/jetbrains/python/run/PythonConfigurationType.java @@ -1,17 +1,5 @@ /* - * Copyright 2000-2014 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package com.jetbrains.python.run; @@ -42,6 +30,7 @@ public class PythonConfigurationType implements ConfigurationType { super(configurationType); } + @NotNull public RunConfiguration createTemplateConfiguration(Project project) { return new PythonRunConfiguration(project, this); } diff --git a/python/src/com/jetbrains/python/testing/PythonTestConfigurationType.java b/python/src/com/jetbrains/python/testing/PythonTestConfigurationType.java index a2e851c880f8..fda6c7bab79d 100644 --- a/python/src/com/jetbrains/python/testing/PythonTestConfigurationType.java +++ b/python/src/com/jetbrains/python/testing/PythonTestConfigurationType.java @@ -1,17 +1,5 @@ /* - * Copyright 2000-2017 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package com.jetbrains.python.testing; @@ -75,6 +63,7 @@ public final class PythonTestConfigurationType implements ConfigurationType { super(configurationType); } + @NotNull @Override public RunConfiguration createTemplateConfiguration(Project project) { return new PythonUnitTestRunConfiguration(project, this); @@ -91,6 +80,7 @@ public final class PythonTestConfigurationType implements ConfigurationType { super(configurationType); } + @NotNull @Override public RunConfiguration createTemplateConfiguration(Project project) { return new PythonDocTestRunConfiguration(project, this); @@ -107,6 +97,7 @@ public final class PythonTestConfigurationType implements ConfigurationType { super(configurationType); } + @NotNull @Override public RunConfiguration createTemplateConfiguration(Project project) { return new PyTestRunConfiguration(project, this); @@ -123,6 +114,7 @@ public final class PythonTestConfigurationType implements ConfigurationType { super(configurationType); } + @NotNull @Override public RunConfiguration createTemplateConfiguration(Project project) { return new PythonNoseTestRunConfiguration(project, this);