update hutool-core/src/main/java/cn/hutool/core/tree/TreeUtil.java.

This commit is contained in:
elasticsearch 2022-08-09 09:52:41 +00:00 committed by Gitee
parent cb153df534
commit 412883e48e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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);
}