Github user paplorinc commented on a diff in the pull request:
https://github.com/apache/groovy/pull/360#discussion_r69002229
--- Diff: src/main/groovy/lang/ObjectRange.java ---
@@ -331,24 +331,23 @@ public List subList(int fromIndex, int toIndex) {
// Performance detail:
// not using get(fromIndex), get(toIndex) in the following to
avoid stepping over elements twice
- StepIterator iter = new StepIterator(this, 1);
+ Iterator it = iterator();
--- End diff --
`iterator()` already returns a `new StepIterator(this, 1)`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---