Skip to content

Commit

Permalink
Use -=
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jan 15, 2024
1 parent bf87b02 commit dbb8a25
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1953,11 +1953,11 @@ public static <E> Collection<E> removeCount(final Collection<E> input, int start
final Iterator<E> iterator = input.iterator();
while (count > 0) {
if (startIndex > 0) {
startIndex = startIndex - 1;
startIndex -= 1;
iterator.next();
continue;
}
count = count - 1;
count -= 1;
result.add(iterator.next());
iterator.remove();
}
Expand Down

0 comments on commit dbb8a25

Please sign in to comment.