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:
parent
4f00c55389
commit
680752e141
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue