Re: RFR: 8274806: Simplify equals() call on nullable variable and a constant in java.desktop

2021-10-07 Thread Pankaj Bansal
On Sat, 2 Oct 2021 09:14:49 GMT, Andrey Turbanov wrote: > Flipping arguments of 'equals' method, allows simplifying boolean > expressions: now we can remove redundant null check before. looks good to me - Marked as reviewed by pbansal (Reviewer). PR: https://git.openjdk.java.net

Re: RFR: 8275106: Cleanup Iterator usages in java.desktop

2021-10-14 Thread Pankaj Bansal
On Fri, 8 Oct 2021 19:37:35 GMT, Andrey Turbanov 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 Marked as reviewed by pbansal (Reviewer). - PR: https://git.openjdk.j