You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2013/11/27 22:50:47 UTC

svn commit: r1546206 - /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/PeekingIterator.java

Author: tn
Date: Wed Nov 27 21:50:47 2013
New Revision: 1546206

URL: http://svn.apache.org/r1546206
Log:
Add message to exception.

Modified:
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/PeekingIterator.java

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/PeekingIterator.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/PeekingIterator.java?rev=1546206&r1=1546205&r2=1546206&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/PeekingIterator.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/PeekingIterator.java Wed Nov 27 21:50:47 2013
@@ -151,7 +151,7 @@ public class PeekingIterator<E> implemen
      */
     public void remove() {
         if (slotFilled) {
-            throw new IllegalStateException();
+            throw new IllegalStateException("peek() or element() called before remove()");
         }
         iterator.remove();
     }