From 350363bac1ed8fba1667703fdf13b7857959bd70 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Fri, 27 Mar 2015 13:57:59 +0100 Subject: [PATCH] Cleanup (formatting) --- .../configurations/JavaCommandLineState.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/java/execution/openapi/src/com/intellij/execution/configurations/JavaCommandLineState.java b/java/execution/openapi/src/com/intellij/execution/configurations/JavaCommandLineState.java index 404ef1c4be62..f6163fed0066 100644 --- a/java/execution/openapi/src/com/intellij/execution/configurations/JavaCommandLineState.java +++ b/java/execution/openapi/src/com/intellij/execution/configurations/JavaCommandLineState.java @@ -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() {