Constructors must not invoke overrideable methods

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1494333 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2013-06-18 21:59:21 +00:00
parent 4f00c55389
commit 680752e141
1 changed files with 5 additions and 1 deletions

View File

@ -59,7 +59,7 @@ public class LoopingListIterator<E> implements ResettableListIterator<E> {
throw new NullPointerException("The list must not be null");
}
this.list = list;
reset();
_reset();
}
/**
@ -235,6 +235,10 @@ public class LoopingListIterator<E> implements ResettableListIterator<E> {
* Resets the iterator back to the start of the list.
*/
public void reset() {
_reset();
}
private void _reset() {
iterator = list.listIterator();
}