preliminary comment sectionMap handling in PreferencesUtil
authorAndreas Müller <a.mueller@bgbm.org>
Sun, 29 Sep 2019 14:26:36 +0000 (16:26 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Sun, 29 Sep 2019 14:26:36 +0000 (16:26 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java

index ce6a5d271977b5a47fbb8dd9e6e5464661bbe630..f87a58816444707ee4fb287f004923c8ae1a2e12 100644 (file)
@@ -1393,11 +1393,11 @@ public class PreferencesUtil implements IPreferenceKeys {
 
     public static void fillNameDetailsConfigurator(NameDetailsConfigurator config, String value) {
         String [] sections = value.split(";");
-        Map<String, Boolean> sectionMap = new HashMap<String, Boolean>();
+        Map<String, Boolean> sectionMap = new HashMap<>();
         String[] sectionValues;
         for (String sectionValue: sections){
             sectionValues = sectionValue.split(":");
-            sectionMap.put(sectionValues[0], Boolean.valueOf(sectionValues[1]));
+//            sectionMap.put(sectionValues[0], Boolean.valueOf(sectionValues[1]));
         }
         for (Field field: config.getClass().getDeclaredFields()){
             try {