Skip to content

Commit

Permalink
Rename private method
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jul 14, 2024
1 parent 29b780d commit 70daade
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@ public class LoopingListIterator<E> implements ResettableListIterator<E> {
*/
public LoopingListIterator(final List<E> list) {
this.list = Objects.requireNonNull(list, "collection");
_reset();
}

private void _reset() {
iterator = list.listIterator();
init();
}

/**
Expand Down Expand Up @@ -110,6 +106,10 @@ public boolean hasPrevious() {
return !list.isEmpty();
}

private void init() {
iterator = list.listIterator();
}

/**
* Returns the next object in the list.
* <p>
Expand Down Expand Up @@ -230,7 +230,7 @@ public void remove() {
*/
@Override
public void reset() {
_reset();
init();
}

/**
Expand Down

0 comments on commit 70daade

Please sign in to comment.