mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
update hutool-core/src/main/java/cn/hutool/core/tree/TreeUtil.java.
This commit is contained in:
parent
cb153df534
commit
412883e48e
@ -314,6 +314,7 @@ public class TreeUtil {
|
||||
queue.offer(root);
|
||||
while (!queue.isEmpty()) {
|
||||
Tree<E> node = queue.poll();
|
||||
list.add(node);
|
||||
if (node.hasChild()) {
|
||||
node.getChildren().forEach(queue::offer);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user