Github user paplorinc commented on a diff in the pull request:

    https://github.com/apache/groovy/pull/360#discussion_r69199253
  
    --- Diff: src/main/groovy/lang/ObjectRange.java ---
    @@ -488,37 +500,61 @@ public void remove() {
     
         @Override
         public List step(int step) {
    +        return step((Number) step);
    +    }
    +
    +    /**
    +     * {@inheritDoc}
    +     */
    +    @Override
    +    public List step(Number step) {
             final IteratorClosureAdapter adapter = new 
IteratorClosureAdapter(this);
             step(step, adapter);
             return adapter.asList();
         }
     
         /**
    -     * Increments by one
    +     * Increments by step size
          *
          * @param value the value to increment
    -     * @return the incremented value
    +     * @param step  the value to increment by
    +     * @return the incremented value or null, if there isn't any
          */
    -    private static Object increment(Object value) {
    +    protected static Comparable increment(Comparable value, Number step) {
    --- End diff --
    
    because it got messed up with rebases (changed to private and when I 
changed the order of commits, it got changed back):
    
https://github.com/apache/groovy/pull/360/files#diff-edcd680998449caffc50809917864ceeR523
    
    Thanks, fixing it now.


---
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.
---

Reply via email to