Merge pull request #979 from mitm001/master

Fixed how AppSetting mergeFrom checks for key mapping.
This commit is contained in:
Paul Speed 2018-12-27 16:56:31 -05:00 committed by GitHub
commit f73d10bb9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,7 +274,7 @@ public final class AppSettings extends HashMap<String, Object> {
*/
public void mergeFrom(AppSettings other) {
for (String key : other.keySet()) {
if (get(key) == null) {
if( !this.containsKey(key) ) {
put(key, other.get(key));
}
}