Merge pull request #25 from wongsyrone/fix-override-exist-sections

ConfigParser: do NOT override existing sections
pull/1/head
Neo Peng 3 years ago committed by GitHub
commit f5fff1e0f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,7 +45,10 @@ public class ConfigParser {
}
lastSection = section;
map.put(lastSection, new ArrayList<>());
if (null == map.get(lastSection)) {
// do NOT override existing sections
map.put(lastSection, new ArrayList<>());
}
break;
case '#':
case ';':

Loading…
Cancel
Save