This commit is contained in:
Gary Gregory 2024-01-15 09:16:01 -05:00
parent bf87b02c55
commit dbb8a25e98
1 changed files with 2 additions and 2 deletions

View File

@ -1953,11 +1953,11 @@ public class CollectionUtils {
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();
}