RFR: 8359996: Remove unnecessary List.indexOf key from Track.remove
Alexey Ivanov
aivanov at openjdk.org
Thu Jun 19 19:51:29 UTC 2025
On Wed, 23 Apr 2025 08:53:57 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.
> `eventsList` is an ArrayList.
Changes requested by aivanov (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/24818#pullrequestreview-2943916437
More information about the client-libs-dev
mailing list