Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Collections.emptyIterator() instead of iterator of an emptyList #1327

Conversation

hduelme
Copy link
Contributor

@hduelme hduelme commented Jan 26, 2023

Since Java 7 Collections provides an emptyIterator. This should be unused instead of an iterator of an emptyList. Also it is easier to read.

@gregturn gregturn closed this in aee1243 Feb 6, 2023
@gregturn gregturn self-assigned this Feb 6, 2023
@gregturn gregturn changed the title use Collections.emptyIterator() instead of iterator of an emptyList Use Collections.emptyIterator() instead of iterator of an emptyList Feb 6, 2023
@gregturn gregturn added this to the 4.0.2 milestone Feb 6, 2023
@gregturn
Copy link
Contributor

gregturn commented Feb 6, 2023

Thanks @hduelme !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants