mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-24 18:04:54 +08:00
Update hutool-core/src/main/java/cn/hutool/core/tree/BeanTree.java
This commit is contained in:
parent
d5879a0abd
commit
0660c75057
@ -132,7 +132,7 @@ public class BeanTree<T, R extends Comparable<R>> {
|
||||
findChildren(list, pIdValuesMap);
|
||||
return parents;
|
||||
}
|
||||
final List<T> parents = new ArrayList<>(list.size());
|
||||
final List<T> parents = new ArrayList<>();
|
||||
final Map<R, List<T>> pIdValuesMap = EasyStream.of(list).peek(e -> {
|
||||
if (parentPredicate.test(e)) {
|
||||
parents.add(e);
|
||||
|
Loading…
Reference in New Issue
Block a user