From 424cb11ba8d12012a6fbc8c6420e2b3b67cc09c9 Mon Sep 17 00:00:00 2001 From: Sergey Simonchik Date: Tue, 26 May 2015 12:53:14 +0300 Subject: [PATCH] code cleanup: removing unnecessary Collections.unmodifiableMap (System.getEnv() and EnvironmentUtil.getEnvironmentMap() are already unmodifiable maps) --- .../execution/configurations/GeneralCommandLine.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/platform-api/src/com/intellij/execution/configurations/GeneralCommandLine.java b/platform/platform-api/src/com/intellij/execution/configurations/GeneralCommandLine.java index c08353cc6524..36ea80f1b741 100644 --- a/platform/platform-api/src/com/intellij/execution/configurations/GeneralCommandLine.java +++ b/platform/platform-api/src/com/intellij/execution/configurations/GeneralCommandLine.java @@ -143,12 +143,12 @@ public class GeneralCommandLine implements UserDataHolder { } /** - * @return Environment, that will be passed to the process if isPassParentEnvironment() == true + * @return unmodifiable map of the parent environment, that will be passed to the process if isPassParentEnvironment() == true */ @NotNull public Map getParentEnvironment() { - return Collections.unmodifiableMap(PlatformUtils.isAppCode() ? System.getenv() // Temporarily fix for OC-8606 - : EnvironmentUtil.getEnvironmentMap()); + return PlatformUtils.isAppCode() ? System.getenv() // Temporarily fix for OC-8606 + : EnvironmentUtil.getEnvironmentMap(); } public void addParameters(String... parameters) {