Closed motlin closed 2 months ago
ImmutableArrayList.takeWhile() and dropWhile() always return ImmutableArrayList. Since these methods don't delegate to a factory, they can't return ImmutableEmptyList for example.
Hello @motlin,
I have tried resolving this issue and created a PR for the same. Would you review and merge my PR if this issue is still open Here is my PR: https://github.com/eclipse/eclipse-collections/pull/1644
ImmutableArrayList.takeWhile() and dropWhile() always return ImmutableArrayList. Since these methods don't delegate to a factory, they can't return ImmutableEmptyList for example.