commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections/iterators CollatingIterator.java
Date Fri, 13 Dec 2002 11:03:42 GMT
scolebourne    2002/12/13 03:03:42

  Modified:    collections/src/java/org/apache/commons/collections/iterators
                        CollatingIterator.java
  Log:
  Fix remove method to throw correct exception
  
  Revision  Changes    Path
  1.4       +5 -5      jakarta-commons/collections/src/java/org/apache/commons/collections/iterators/CollatingIterator.java
  
  Index: CollatingIterator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/iterators/CollatingIterator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CollatingIterator.java	7 Sep 2002 00:28:53 -0000	1.3
  +++ CollatingIterator.java	13 Dec 2002 11:03:42 -0000	1.4
  @@ -294,7 +294,7 @@
        */
       public void remove() {
           if(-1 == lastReturned) {
  -            throw new NoSuchElementException("No value has been returned yet.");
  +            throw new IllegalStateException("No value can be removed at present");
           } else {
               Iterator iter = (Iterator)(iterators.get(lastReturned));
               iter.remove();
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message