3737import java .util .ArrayList ;
3838import java .util .Arrays ;
3939import java .util .Collections ;
40+ import java .util .HashMap ;
41+
4042import org .apache .commons .io .FileUtils ;
4143import org .apache .commons .io .IOUtils ;
4244import org .eclipse .jgit .api .errors .CheckoutConflictException ;
@@ -270,7 +272,7 @@ public static File getScriptFile(String type) {
270272 return null ;
271273 }
272274
273- public static Map <String , Object > getMeta (String type ) {
275+ public static ConcurrentHashMap <String , Object > getMeta (String type ) {
274276 return getConfiguration (type , "meta" );
275277 }
276278
@@ -279,7 +281,7 @@ public static void setScript(String type, String git, String file) throws Except
279281 setParameter (type , "meta" , "scriptFile" , file );
280282 }
281283
282- public static Map <String , Object > getConfiguration (String type , String id ) {
284+ public static ConcurrentHashMap <String , Object > getConfiguration (String type , String id ) {
283285 ConcurrentHashMap <String , ConcurrentHashMap <String , Object >> database = getDatabase (type );
284286 if (id == null ) {
285287 id =Vitamins .listVitaminSizes (type ).get (0 );
@@ -292,7 +294,7 @@ public static Map<String, Object> getConfiguration(String type, String id) {
292294 String key = (String ) array [i ];
293295 sanatize (key , ConcurrentHashMap );
294296 }
295- return Collections . unmodifiableMap ( ConcurrentHashMap ) ;
297+ return ConcurrentHashMap ;
296298 }catch (Exception ex ) {
297299 ex .printStackTrace ();
298300 }
0 commit comments