Skip to content

Commit 96ecbab

Browse files
authored
Merge pull request #1624 from T45K/make-consistent-with-1141
Make consistent with #1141
2 parents 4ae274b + 7dfec15 commit 96ecbab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/groovy/util/Node.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ public void breadthFirst(Closure c) {
709709
* @since 2.5.0
710710
*/
711711
public void breadthFirst(Map<String, Object> options, Closure c) {
712-
boolean preorder = Boolean.valueOf(options.get("preorder").toString());
712+
boolean preorder = Boolean.parseBoolean(options.get("preorder").toString());
713713
if (preorder) callClosureForNode(c, this, 1);
714714
breadthFirstRest(preorder, 2, c);
715715
if (!preorder) callClosureForNode(c, this, 1);

0 commit comments

Comments
 (0)