From 020b3f54687bd623e232c997f550d297c7f18b97 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 13 Jan 2015 08:30:16 +0000 Subject: [PATCH] * refactor --- source/net/filebot/cli/ScriptShellBaseClass.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/cli/ScriptShellBaseClass.java b/source/net/filebot/cli/ScriptShellBaseClass.java index a573994d..b3955668 100644 --- a/source/net/filebot/cli/ScriptShellBaseClass.java +++ b/source/net/filebot/cli/ScriptShellBaseClass.java @@ -50,10 +50,10 @@ import com.sun.jna.Platform; public abstract class ScriptShellBaseClass extends Script { - private Map defaultValues; + private final Map defaultValues = synchronizedMap(new LinkedHashMap()); public void setDefaultValues(Map values) { - this.defaultValues = new LinkedHashMap(values); + defaultValues.putAll(values); } public Map getDefaultValues() {