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

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


Copy link

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
type: task
None yet

No branches or pull requests

2 participants