add NotNull

This commit is contained in:
Vladimir Krivosheev
2017-12-19 13:34:08 +01:00
parent 3816cd521c
commit 616007c544
16 changed files with 37 additions and 191 deletions
@@ -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, "");
}
@@ -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);
}
@@ -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);
}