mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
code cleanup: removing unnecessary Collections.unmodifiableMap (System.getEnv() and EnvironmentUtil.getEnvironmentMap() are already unmodifiable maps)
This commit is contained in:
+3
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user