RFR: 8357226: Remove unnecessary List.indexOf from RepaintManager.removeInvalidComponent
Andrey Turbanov
aturbanov at openjdk.org
Wed Jul 16 09:57:41 UTC 2025
On Thu, 24 Apr 2025 09:29:24 GMT, Andrey Turbanov <aturbanov at 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.
No changing in behavior here. I assume it's safe to /integrate
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24845#issuecomment-3077825665
More information about the client-libs-dev
mailing list