RFR: 8359996: Remove unnecessary List.indexOf key from Track.remove [v2]
Chen Liang
liach at openjdk.org
Fri Jun 20 15:55:36 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
This version looks good. Please wait for a desktop reviewer.
-------------
Marked as reviewed by liach (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/24818#pullrequestreview-2946677580
More information about the client-libs-dev
mailing list