Use -=
This commit is contained in:
parent
bf87b02c55
commit
dbb8a25e98
|
@ -1953,11 +1953,11 @@ public class CollectionUtils {
|
||||||
final Iterator<E> iterator = input.iterator();
|
final Iterator<E> iterator = input.iterator();
|
||||||
while (count > 0) {
|
while (count > 0) {
|
||||||
if (startIndex > 0) {
|
if (startIndex > 0) {
|
||||||
startIndex = startIndex - 1;
|
startIndex -= 1;
|
||||||
iterator.next();
|
iterator.next();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
count = count - 1;
|
count -= 1;
|
||||||
result.add(iterator.next());
|
result.add(iterator.next());
|
||||||
iterator.remove();
|
iterator.remove();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue