Skip to content

Commit

Permalink
Fix java style
Browse files Browse the repository at this point in the history
  • Loading branch information
gengliangwang committed Feb 26, 2020
1 parent 4f93ffc commit c6c2c82
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,10 @@ private List<T> copyElements() {
parentToChildrenMap.computeIfAbsent(parentKey, k -> new ConcurrentHashMap<>());
ArrayList<T> elements = new ArrayList<>();
for (Comparable<Object> naturalKey : children.keySet()) {
data.computeIfPresent(naturalKey, (k, v) -> {elements.add(v); return v;});
data.computeIfPresent(naturalKey, (k, v) -> {
elements.add(v);
return v;
});
}
return elements;
} else {
Expand Down

0 comments on commit c6c2c82

Please sign in to comment.