From d04b8e525cdf2c35ddbfa929098c710021f128d2 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 1 Nov 2024 18:08:25 -0400 Subject: [PATCH] Remove unnecessary keywords --- .../commons/collections4/iterators/ExtendedIterator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/iterators/ExtendedIterator.java b/src/main/java/org/apache/commons/collections4/iterators/ExtendedIterator.java index 711b93eec..5e8771ea4 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/ExtendedIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/ExtendedIterator.java @@ -123,7 +123,7 @@ public final class ExtendedIterator implements IteratorOperations { ((IteratorChain) 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 implements IteratorOperations { * @return An iterator filtered by the predicate. */ public ExtendedIterator filter(final Predicate predicate) { - return new ExtendedIterator<>(new FilterIterator<>(this, predicate::test), this.throwOnRemove); + return new ExtendedIterator<>(new FilterIterator<>(this, predicate::test), throwOnRemove); } @Override