commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1494333 - /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/LoopingListIterator.java
Date Tue, 18 Jun 2013 21:59:21 GMT
Author: sebb
Date: Tue Jun 18 21:59:21 2013
New Revision: 1494333

URL: http://svn.apache.org/r1494333
Log:
Constructors must not invoke overrideable methods

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

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/LoopingListIterator.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/LoopingListIterator.java?rev=1494333&r1=1494332&r2=1494333&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/LoopingListIterator.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/LoopingListIterator.java
Tue Jun 18 21:59:21 2013
@@ -59,7 +59,7 @@ public class LoopingListIterator<E> impl
             throw new NullPointerException("The list must not be null");
         }
         this.list = list;
-        reset();
+        _reset();
     }
 
     /**
@@ -235,6 +235,10 @@ public class LoopingListIterator<E> impl
      * Resets the iterator back to the start of the list.
      */
     public void reset() {
+        _reset();
+    }
+
+    private void _reset() {
         iterator = list.listIterator();
     }
 



Mime
View raw message