mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup (NotNull)
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2000-2018 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.
|
||||
|
||||
/*
|
||||
* Class RemoteConfigurationFactory
|
||||
@@ -27,7 +25,7 @@ public class RemoteConfigurationType implements ConfigurationType {
|
||||
myFactory = new ConfigurationFactory(this) {
|
||||
@Override
|
||||
@NotNull
|
||||
public RunConfiguration createTemplateConfiguration(Project project) {
|
||||
public RunConfiguration createTemplateConfiguration(@NotNull Project project) {
|
||||
return new RemoteConfiguration(project, this);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ class CompoundRunConfiguration @JvmOverloads constructor(project: Project, name:
|
||||
RunConfigurationBase(project, factory, name), RunnerIconProvider, WithoutOwnBeforeRunSteps, Cloneable {
|
||||
companion object {
|
||||
@JvmField
|
||||
val COMPARATOR: Comparator<RunConfiguration> = Comparator<RunConfiguration> { o1, o2 ->
|
||||
val COMPARATOR: Comparator<RunConfiguration> = Comparator { o1, o2 ->
|
||||
val i = o1.type.displayName.compareTo(o2.type.displayName)
|
||||
when {
|
||||
i != 0 -> i
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2000-2018 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;
|
||||
|
||||
import com.intellij.execution.configurations.ConfigurationFactory;
|
||||
@@ -17,7 +15,7 @@ public class AntRunConfigurationType implements ConfigurationType {
|
||||
private final ConfigurationFactory myFactory = new ConfigurationFactory(this) {
|
||||
@NotNull
|
||||
@Override
|
||||
public RunConfiguration createTemplateConfiguration(Project project) {
|
||||
public RunConfiguration createTemplateConfiguration(@NotNull Project project) {
|
||||
return new AntRunConfiguration(project, this, "");
|
||||
}
|
||||
};
|
||||
|
||||
+3
-7
@@ -1,6 +1,4 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2000-2018 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;
|
||||
|
||||
import com.intellij.compiler.options.CompileStepBeforeRun;
|
||||
@@ -49,13 +47,13 @@ public class MavenRunConfigurationType implements ConfigurationType {
|
||||
myFactory = new ConfigurationFactory(this) {
|
||||
@NotNull
|
||||
@Override
|
||||
public RunConfiguration createTemplateConfiguration(Project project) {
|
||||
public RunConfiguration createTemplateConfiguration(@NotNull Project project) {
|
||||
return new MavenRunConfiguration(project, this, "");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public RunConfiguration createTemplateConfiguration(Project project, RunManager runManager) {
|
||||
public RunConfiguration createTemplateConfiguration(@NotNull Project project, @NotNull RunManager runManager) {
|
||||
return new MavenRunConfiguration(project, this, "");
|
||||
}
|
||||
|
||||
@@ -66,8 +64,6 @@ public class MavenRunConfigurationType implements ConfigurationType {
|
||||
if (!StringUtil.isEmptyOrSpaces(cfg.getRunnerParameters().getWorkingDirPath())) return cfg;
|
||||
|
||||
Project project = cfg.getProject();
|
||||
if (project == null) return cfg;
|
||||
|
||||
MavenProjectsManager projectsManager = MavenProjectsManager.getInstance(project);
|
||||
|
||||
List<MavenProject> projects = projectsManager.getProjects();
|
||||
|
||||
+2
-4
@@ -1,6 +1,4 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2000-2018 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;
|
||||
|
||||
@@ -29,7 +27,7 @@ public class TestNGConfigurationType implements ConfigurationType {
|
||||
{
|
||||
@NotNull
|
||||
@Override
|
||||
public RunConfiguration createTemplateConfiguration(Project project) {
|
||||
public RunConfiguration createTemplateConfiguration(@NotNull Project project) {
|
||||
return new TestNGConfiguration("", project, this);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@ public class XsltRunConfigType implements ConfigurationType {
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public RunConfiguration createTemplateConfiguration(final Project project) {
|
||||
public RunConfiguration createTemplateConfiguration(@NotNull final Project project) {
|
||||
return new XsltRunConfiguration(project, this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ public class RestRunConfigurationType implements ConfigurationType {
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public RunConfiguration createTemplateConfiguration(Project project) {
|
||||
public RunConfiguration createTemplateConfiguration(@NotNull Project project) {
|
||||
return new DocutilsRunConfiguration(project, this);
|
||||
}
|
||||
}
|
||||
@@ -87,7 +87,7 @@ public class RestRunConfigurationType implements ConfigurationType {
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public RunConfiguration createTemplateConfiguration(Project project) {
|
||||
public RunConfiguration createTemplateConfiguration(@NotNull Project project) {
|
||||
return new SphinxRunConfiguration(project, this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public class PythonConfigurationType implements ConfigurationType {
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public RunConfiguration createTemplateConfiguration(Project project) {
|
||||
public RunConfiguration createTemplateConfiguration(@NotNull Project project) {
|
||||
return new PythonRunConfiguration(project, this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2000-2018 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;
|
||||
|
||||
import com.google.common.collect.ObjectArrays;
|
||||
@@ -15,7 +13,6 @@ import com.jetbrains.python.testing.doctest.PythonDocTestRunConfiguration;
|
||||
import com.jetbrains.python.testing.nosetestLegacy.PythonNoseTestRunConfiguration;
|
||||
import com.jetbrains.python.testing.pytestLegacy.PyTestRunConfiguration;
|
||||
import com.jetbrains.python.testing.unittestLegacy.PythonUnitTestRunConfiguration;
|
||||
import com.jetbrains.python.testing.PyTestLegacyInteropKt;
|
||||
import icons.PythonIcons;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -65,7 +62,7 @@ public final class PythonTestConfigurationType implements ConfigurationType {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public RunConfiguration createTemplateConfiguration(Project project) {
|
||||
public RunConfiguration createTemplateConfiguration(@NotNull Project project) {
|
||||
return new PythonUnitTestRunConfiguration(project, this);
|
||||
}
|
||||
|
||||
@@ -82,7 +79,7 @@ public final class PythonTestConfigurationType implements ConfigurationType {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public RunConfiguration createTemplateConfiguration(Project project) {
|
||||
public RunConfiguration createTemplateConfiguration(@NotNull Project project) {
|
||||
return new PythonDocTestRunConfiguration(project, this);
|
||||
}
|
||||
|
||||
@@ -99,7 +96,7 @@ public final class PythonTestConfigurationType implements ConfigurationType {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public RunConfiguration createTemplateConfiguration(Project project) {
|
||||
public RunConfiguration createTemplateConfiguration(@NotNull Project project) {
|
||||
return new PyTestRunConfiguration(project, this);
|
||||
}
|
||||
|
||||
@@ -116,7 +113,7 @@ public final class PythonTestConfigurationType implements ConfigurationType {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public RunConfiguration createTemplateConfiguration(Project project) {
|
||||
public RunConfiguration createTemplateConfiguration(@NotNull Project project) {
|
||||
return new PythonNoseTestRunConfiguration(project, this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user