RFR: 8297682: Use Collections.emptyIterator where applicable
Sergey Tsypanov
stsypanov at openjdk.org
Sun Nov 27 13:19:42 UTC 2022
On Mon, 7 Nov 2022 17:30:20 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
> Instead of `Collections.emptyList().iterator()` we can use `Collections.emptyIterator()` method.
> Actual implementation of `java.util.Collections.EmptyList#iterator` does exactly this - just calls `emptyIterator` method.
LGTM
-------------
Marked as reviewed by stsypanov (Author).
PR: https://git.openjdk.org/jdk/pull/11025
More information about the nio-dev
mailing list