Java language level updates concerning Maps. (#1008)

* Java language level updates concerning Maps.

* Reverts when comments indicated no sync can happen.
This commit is contained in:
Koen De Groote
2017-04-22 15:48:46 +12:00
committed by Rob Bygrave
parent 8432f7b0d5
commit 43408fcb87
15 changed files with 20 additions and 91 deletions
@@ -79,11 +79,7 @@ class PrepareDocNested {
for (int i = 0; i < origSize; i++) {
SpiExpression expr = origUnderlying.get(i);
String nestedPath = expr.nestedPath(beanDescriptor);
Group group = groups.get(nestedPath);
if (group == null) {
group = new Group(nestedPath);
groups.put(nestedPath, group);
}
Group group = groups.computeIfAbsent(nestedPath, Group::new);
group.list.add(expr);
}