diff options
Diffstat (limited to 'libjava/classpath/java/util/LinkedList.java')
-rw-r--r-- | libjava/classpath/java/util/LinkedList.java | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libjava/classpath/java/util/LinkedList.java b/libjava/classpath/java/util/LinkedList.java index 2a35425fa24..e77ae536b64 100644 --- a/libjava/classpath/java/util/LinkedList.java +++ b/libjava/classpath/java/util/LinkedList.java @@ -804,11 +804,9 @@ public class LinkedList extends AbstractSequentialList * Returns the index of the next element. * * @return the next index - * @throws ConcurrentModificationException if the list was modified */ public int nextIndex() { - checkMod(); return position; } @@ -816,11 +814,9 @@ public class LinkedList extends AbstractSequentialList * Returns the index of the previous element. * * @return the previous index - * @throws ConcurrentModificationException if the list was modified */ public int previousIndex() { - checkMod(); return position - 1; } @@ -828,11 +824,9 @@ public class LinkedList extends AbstractSequentialList * Returns true if more elements exist via next. * * @return true if next will succeed - * @throws ConcurrentModificationException if the list was modified */ public boolean hasNext() { - checkMod(); return (next != null); } @@ -840,11 +834,9 @@ public class LinkedList extends AbstractSequentialList * Returns true if more elements exist via previous. * * @return true if previous will succeed - * @throws ConcurrentModificationException if the list was modified */ public boolean hasPrevious() { - checkMod(); return (previous != null); } |