Actually fix unmarshalling of region group flags.

This commit is contained in:
wizjany 2016-06-15 23:16:08 -04:00
parent db70e6f346
commit 03cf9a668b

View File

@ -142,9 +142,9 @@ public Map<Flag<?>, Object> unmarshal(Map<String, Object> rawValues, boolean cre
String parentName = entry.getKey().replaceAll("-group", "");
Flag<?> parent = get(parentName);
if (parent == null || parent instanceof UnknownFlag) {
forceRegister(new UnknownFlag(entry.getKey()));
if (createUnknown) forceRegister(new UnknownFlag(entry.getKey()));
} else {
parent.getRegionGroupFlag().unmarshal(entry.getValue());
values.put(parent.getRegionGroupFlag(), parent.getRegionGroupFlag().unmarshal(entry.getValue()));
}
}