Remove unnecessary keywords

This commit is contained in:
Gary Gregory 2024-11-01 18:08:25 -04:00
parent 064530e1e0
commit d04b8e525c
1 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ public final class ExtendedIterator<T> implements IteratorOperations<T> {
((IteratorChain<T>) base).addIterator(other);
return this;
}
return new ExtendedIterator<>(new IteratorChain<>(this.base, other), this.throwOnRemove);
return new ExtendedIterator<>(new IteratorChain<>(base, other), throwOnRemove);
}
/**
@ -133,7 +133,7 @@ public final class ExtendedIterator<T> implements IteratorOperations<T> {
* @return An iterator filtered by the predicate.
*/
public ExtendedIterator<T> filter(final Predicate<T> predicate) {
return new ExtendedIterator<>(new FilterIterator<>(this, predicate::test), this.throwOnRemove);
return new ExtendedIterator<>(new FilterIterator<>(this, predicate::test), throwOnRemove);
}
@Override