On Thu, 24 Apr 2025 09:29:24 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:

> No need to call `List.indexOf(Object)` before `List.remove(int)`. Instead we 
> can call `List.remove(Object)` directly. It's faster and cleaner.
> `invalidComponents` is an ArrayList.

This pull request has now been integrated.

Changeset: 20b5f097
Author:    Andrey Turbanov <aturba...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/20b5f097773043068ce732e0fa30c2726273e40a
Stats:     6 lines in 1 file changed: 0 ins; 3 del; 3 mod

8357226: Remove unnecessary List.indexOf from 
RepaintManager.removeInvalidComponent

Reviewed-by: azvegint, serb

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

PR: https://git.openjdk.org/jdk/pull/24845

Reply via email to