Repository: incubator-groovy
Updated Branches:
  refs/heads/master 459638b0e -> d8b0ff4c4


removed unnecessary @inheritdoc annotations


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/d8b0ff4c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/d8b0ff4c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/d8b0ff4c

Branch: refs/heads/master
Commit: d8b0ff4c45d97eed4906b763f6e72574de0607c6
Parents: 459638b
Author: pascalschumacher <pascalschumac...@gmx.net>
Authored: Thu Nov 12 20:56:43 2015 +0100
Committer: pascalschumacher <pascalschumac...@gmx.net>
Committed: Thu Nov 12 21:02:25 2015 +0100

----------------------------------------------------------------------
 src/main/groovy/lang/IntRange.java | 45 ---------------------------------
 1 file changed, 45 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/d8b0ff4c/src/main/groovy/lang/IntRange.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/lang/IntRange.java 
b/src/main/groovy/lang/IntRange.java
index 1995244..d51d514 100644
--- a/src/main/groovy/lang/IntRange.java
+++ b/src/main/groovy/lang/IntRange.java
@@ -70,16 +70,10 @@ public class IntRange extends AbstractList<Integer> 
implements Range<Integer> {
          */
         private int value = isReverse() ? getTo() : getFrom();
 
-        /**
-         * {@inheritDoc}
-         */
         public boolean hasNext() {
             return index < size;
         }
 
-        /**
-         * {@inheritDoc}
-         */
         public Integer next() {
             if (!hasNext()) {
                 // TODO instead of returning null, do this: throw new 
NoSuchElementException();
@@ -253,17 +247,11 @@ public class IntRange extends AbstractList<Integer> 
implements Range<Integer> {
                 || (this.inclusive != null && this.inclusive == that.inclusive 
&& this.from == that.from && this.to == that.to));
     }
 
-    /**
-     * {@inheritDoc}
-     */
     public Integer getFrom() {
         if (inclusive == null || from <= to) return from;
         return inclusive ? to : to + 1;
     }
 
-    /**
-     * {@inheritDoc}
-     */
     public Integer getTo() {
         if (inclusive == null) return to;
         if (from <= to) return inclusive ? to : to - 1;
@@ -295,9 +283,6 @@ public class IntRange extends AbstractList<Integer> 
implements Range<Integer> {
         return getTo();
     }
 
-    /**
-     * {@inheritDoc}
-     */
     public boolean isReverse() {
         return inclusive == null ? reverse : (from > to);
     }
@@ -306,9 +291,6 @@ public class IntRange extends AbstractList<Integer> 
implements Range<Integer> {
         return contains(o);
     }
 
-    /**
-     * {@inheritDoc}
-     */
     public Integer get(int index) {
         if (index < 0) {
             throw new IndexOutOfBoundsException("Index: " + index + " should 
not be negative");
@@ -319,23 +301,14 @@ public class IntRange extends AbstractList<Integer> 
implements Range<Integer> {
         return isReverse() ? getTo() - index : index + getFrom();
     }
 
-    /**
-     * {@inheritDoc}
-     */
     public int size() {
         return getTo() - getFrom() + 1;
     }
 
-    /**
-     * {@inheritDoc}
-     */
     public Iterator<Integer> iterator() {
         return new IntRangeIterator();
     }
 
-    /**
-     * {@inheritDoc}
-     */
     public List<Integer> subList(int fromIndex, int toIndex) {
         if (fromIndex < 0) {
             throw new IndexOutOfBoundsException("fromIndex = " + fromIndex);
@@ -354,24 +327,15 @@ public class IntRange extends AbstractList<Integer> 
implements Range<Integer> {
         return new IntRange(fromIndex + getFrom(), toIndex + getFrom() - 1, 
isReverse());
     }
 
-    /**
-     * {@inheritDoc}
-     */
     public String toString() {
         return inclusive != null ? ("" + from + ".." + (inclusive ? "" : "<") 
+ to)
                 : (reverse ? "" + to + ".." + from : "" + from + ".." + to);
     }
 
-    /**
-     * {@inheritDoc}
-     */
     public String inspect() {
         return toString();
     }
 
-    /**
-     * {@inheritDoc}
-     */
     public boolean contains(Object value) {
         if (value instanceof Integer) {
             return (Integer) value >= getFrom() && (Integer) value <= getTo();
@@ -384,9 +348,6 @@ public class IntRange extends AbstractList<Integer> 
implements Range<Integer> {
         return false;
     }
 
-    /**
-     * {@inheritDoc}
-     */
     public boolean containsAll(Collection other) {
         if (other instanceof IntRange) {
             final IntRange range = (IntRange) other;
@@ -395,9 +356,6 @@ public class IntRange extends AbstractList<Integer> 
implements Range<Integer> {
         return super.containsAll(other);
     }
 
-    /**
-     * {@inheritDoc}
-     */
     public void step(int step, Closure closure) {
         if (step == 0) {
             if (!getFrom().equals(getTo())) {
@@ -431,9 +389,6 @@ public class IntRange extends AbstractList<Integer> 
implements Range<Integer> {
         }
     }
 
-    /**
-     * {@inheritDoc}
-     */
     public List<Integer> step(int step) {
         IteratorClosureAdapter<Integer> adapter = new 
IteratorClosureAdapter<Integer>(this);
         step(step, adapter);

Reply via email to