mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
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:
committed by
Rob Bygrave
parent
8432f7b0d5
commit
43408fcb87
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user