On Fri, 8 Oct 2021 19:37:35 GMT, Andrey Turbanov <d...@openjdk.java.net> wrote:

> Cycles with 'Iterator' are error-prone. It's better to use more high-level 
> code, which easier to read.
> We can use enhanced-for or Collection.removeIf

This pull request has now been integrated.

Changeset: 322b1301
Author:    Andrey Turbanov <turban...@gmail.com>
Committer: Pankaj Bansal <pban...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/322b1301061ba113dc5f7f3710dde2d80a18a14e
Stats:     115 lines in 18 files changed: 5 ins; 62 del; 48 mod

8275106: Cleanup Iterator usages in java.desktop

Reviewed-by: serb, pbansal

-------------

PR: https://git.openjdk.java.net/jdk/pull/5871

Reply via email to