mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
immutable map instance can be safely passed outside
This commit is contained in:
+2
-1
@@ -43,6 +43,7 @@ import java.util.List;
|
||||
|
||||
public class EnvironmentVariablesTextFieldWithBrowseButton extends TextFieldWithBrowseButton implements UserActivityProviderComponent {
|
||||
|
||||
// immutable map instance with reliable user-specified iteration order
|
||||
private Map<String, String> myEnvs = Collections.emptyMap();
|
||||
private boolean myPassParentEnvs;
|
||||
private final List<ChangeListener> myListeners = ContainerUtil.createLockFreeCopyOnWriteList();
|
||||
@@ -63,7 +64,7 @@ public class EnvironmentVariablesTextFieldWithBrowseButton extends TextFieldWith
|
||||
*/
|
||||
@NotNull
|
||||
public Map<String, String> getEnvs() {
|
||||
return Collections.unmodifiableMap(myEnvs);
|
||||
return myEnvs;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user