cleanup — add NotNull

This commit is contained in:
Vladimir Krivosheev
2016-12-01 17:41:58 +01:00
parent 94a5adacd7
commit e1efcd8d0d
36 changed files with 133 additions and 120 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2016 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.
@@ -75,7 +75,7 @@ public class RestConfigurationEditor extends SettingsEditor<RestRunConfiguration
setAnchor(myCommonOptionsForm.getAnchor());
}
protected void resetEditorFrom(RestRunConfiguration configuration) {
protected void resetEditorFrom(@NotNull RestRunConfiguration configuration) {
AbstractPythonRunConfiguration.copyParams(configuration,
myCommonOptionsForm);
myInputFileField.setText(configuration.getInputFile());
@@ -90,7 +90,7 @@ public class RestConfigurationEditor extends SettingsEditor<RestRunConfiguration
myOpenInBrowser.setEnabled(true);
}
protected void applyEditorTo(RestRunConfiguration configuration) throws ConfigurationException {
protected void applyEditorTo(@NotNull RestRunConfiguration configuration) throws ConfigurationException {
AbstractPythonRunConfiguration.copyParams(myCommonOptionsForm, configuration);
configuration.setInputFile(myInputFileField.getText().trim());
configuration.setOutputFile(myOutputFileField.getText().trim());