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 Map.forEach instead of manual Map.Entry iteration wherever possible [SPR-16646] #21187

Closed
spring-projects-issues opened this issue Mar 26, 2018 · 0 comments
Assignees
Labels
type: task
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Mar 26, 2018

Juergen Hoeller opened SPR-16646 and commented

As a leftover of our general Java 8+ codebase revision and a follow-up to several recent polishing commits, one grand sweep is missing still: the use of Map.forEach instead of manual Map.Entry iteration in all places where no return clauses or checked exceptions are involved. That said, we do not switch to use of the Stream API for simple scenarios yet, just to streamlined map entry iteration for the time being.

Inspired by #1752, broadly applied to existing Map.Entry iteration cases as well.


Affects: 5.0.4

Issue Links:

Referenced from: commits e3d0ef6, 4aae6a6

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

No branches or pull requests

2 participants