Fix unknown group flag unmarshalling.

i.e. don't.
This commit is contained in:
wizjany 2019-05-21 19:44:53 -04:00
parent 4b320ab733
commit 6e30f98322

View File

@ -151,7 +151,6 @@ public Map<Flag<?>, Object> unmarshal(Map<String, Object> rawValues, boolean cre
}
}
}
RegionGroupFlag groupUnmarshaller = new RegionGroupFlag("unmarshaldummy", RegionGroup.NONE);
for (Entry<String, Object> entry : regionFlags.entrySet()) {
String parentName = entry.getKey().replaceAll("-group", "");
Flag<?> parent = get(parentName);
@ -162,7 +161,7 @@ public Map<Flag<?>, Object> unmarshal(Map<String, Object> rawValues, boolean cre
}
Flag<?> unk = get(entry.getKey());
if (unk != null) {
values.put(unk, groupUnmarshaller.unmarshal(entry.getValue()));
values.put(unk, entry.getValue());
}
} else {
values.put(parent.getRegionGroupFlag(), parent.getRegionGroupFlag().unmarshal(entry.getValue()));