RFR: 8359996: Remove unnecessary List.indexOf key from Track.remove [v2]

Alexander Zvegintsev azvegint at openjdk.org
Mon Jun 23 05:04:35 UTC 2025


On Thu, 19 Jun 2025 20:28:42 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.
>
> Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8359996: Remove unnecessary List.indexOf key from Track.remove
>   
>   apply suggestion

Marked as reviewed by azvegint (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/24818#pullrequestreview-2948668293


More information about the client-libs-dev mailing list