mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
update hutool-core/src/main/java/cn/hutool/core/tree/TreeUtil.java.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user