Skip to content

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 type: task A general task type: enhancement A general enhancement labels 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
Labels
type: enhancement A general enhancement type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants