Github user Jezza commented on a diff in the pull request:
https://github.com/apache/wicket/pull/268#discussion_r172123895
--- Diff: wicket-core/src/main/java/org/apache/wicket/DequeueContext.java
---
@@ -226,9 +227,9 @@ private DequeueTagAction canDequeueTag(ComponentTag
open)
}
DequeueTagAction action;
- for (int i = containers.size() - 1; i >= 0; i--)
+ for (MarkupContainer container : containers)
--- End diff --
I preserved all of the iteration behaviour.
The `ArrayDeque` iterates "backwards" already, hence why there's a
`descendingIterator()` for a "forward" iteration.
---