Cleanup (formatting)

This commit is contained in:
Roman Shevchenko
2015-03-27 13:57:59 +01:00
parent 7dd72b1c31
commit 350363bac1
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* 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.
@@ -20,12 +20,13 @@ import com.intellij.execution.process.OSProcessHandler;
import com.intellij.execution.runners.ExecutionEnvironment;
import com.intellij.ide.DataManager;
import com.intellij.openapi.actionSystem.CommonDataKeys;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;
public abstract class JavaCommandLineState extends CommandLineState implements JavaCommandLine{
public abstract class JavaCommandLineState extends CommandLineState implements JavaCommandLine {
private JavaParameters myParams;
protected JavaCommandLineState(@NotNull final ExecutionEnvironment environment) {
protected JavaCommandLineState(@NotNull ExecutionEnvironment environment) {
super(environment);
}
@@ -50,8 +51,8 @@ public abstract class JavaCommandLineState extends CommandLineState implements J
protected abstract JavaParameters createJavaParameters() throws ExecutionException;
protected GeneralCommandLine createCommandLine() throws ExecutionException {
return CommandLineBuilder.createFromJavaParameters(getJavaParameters(), CommonDataKeys.PROJECT
.getData(DataManager.getInstance().getDataContext()), true);
@SuppressWarnings("deprecation") Project project = CommonDataKeys.PROJECT.getData(DataManager.getInstance().getDataContext());
return CommandLineBuilder.createFromJavaParameters(getJavaParameters(), project, true);
}
public boolean shouldAddJavaProgramRunnerActions() {