summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/src/main/java/org/openslx/taskmanager/api/Environment.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/src/main/java/org/openslx/taskmanager/api/Environment.java b/api/src/main/java/org/openslx/taskmanager/api/Environment.java
index 3942ec5..2a33a17 100644
--- a/api/src/main/java/org/openslx/taskmanager/api/Environment.java
+++ b/api/src/main/java/org/openslx/taskmanager/api/Environment.java
@@ -51,7 +51,7 @@ public class Environment
bufferedReader.close();
- Environment.env = env;
+ Environment.env = Collections.unmodifiableMap( env );
log.info( "Loaded " + env.size() + " environment lines." );
} catch ( IOException e ) {
log.info( "Could not load environment definition from " + fileName + ". Processes might use the same environment as this thread." );
@@ -62,7 +62,7 @@ public class Environment
public static Map<String, String> get()
{
- return Collections.unmodifiableMap( env );
+ return env;
}
}