garydgregory commented on code in PR #628:
URL:
https://github.com/apache/commons-collections/pull/628#discussion_r2246401571
##########
src/main/java/org/apache/commons/collections4/iterators/UnmodifiableIterator.java:
##########
@@ -79,4 +79,15 @@ public void remove() {
throw new UnsupportedOperationException("remove() is not supported");
}
+ /**
+ * Allows package scoped access to the wrapped iterator for a very
specific IteratorChain usecase.
+ * @return the wrapped IteratorChain instance or null when wrapped
iterator is not a IteratorChain
+ */
+ IteratorChain<? extends E> getPossibleUnderlyingIteratorChain() {
Review Comment:
Hello @JoergBudi
Thank you for your PR.
I'm not a fan of special casing one type in an unwieldy-named method here.
Instead, please rebase on git master and use `UnmodifiableIterator.unwrap()`.
TY!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]