code cleanup: removing unnecessary Collections.unmodifiableMap (System.getEnv() and EnvironmentUtil.getEnvironmentMap() are already unmodifiable maps)

This commit is contained in:
Sergey Simonchik
2015-05-26 12:53:14 +03:00
parent ee165b9f83
commit 424cb11ba8
@@ -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<String, String> 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) {