You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2013/11/19 01:32:29 UTC
svn commit: r1543243 -
/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/PeekingIterator.java
Author: ggregory
Date: Tue Nov 19 00:32:29 2013
New Revision: 1543243
URL: http://svn.apache.org/r1543243
Log:
Statement unnecessarily nested within else clause.
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=1543243&r1=1543242&r2=1543243&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 Tue Nov 19 00:32:29 2013
@@ -152,9 +152,8 @@ public class PeekingIterator<E> implemen
public void remove() {
if (slotFilled) {
throw new IllegalStateException();
- } else {
- iterator.remove();
}
+ iterator.remove();
}
}