Skip to content
Permalink
Browse files
Add elements of a collections without a loop.
  • Loading branch information
garydgregory committed Nov 20, 2020
1 parent 14f8b04 commit d005ee4a4e3569c3d8a431f734c271c4fc1f8878
Showing 1 changed file with 1 addition and 4 deletions.
@@ -148,10 +148,7 @@ private static <T> void bfs(final T root, final ConfigurationNodeVisitor<T> visi
final T node = pendingNodes.remove(0);
visitor.visitBeforeChildren(node, handler);
cancel = visitor.terminate();
for (final T c : handler.getChildren(node))
{
pendingNodes.add(c);
}
pendingNodes.addAll(handler.getChildren(node));
}
}

0 comments on commit d005ee4

Please sign in to comment.