Integrated: 8359996: Remove unnecessary List.indexOf key from Track.remove

Andrey Turbanov aturbanov at openjdk.org
Mon Jun 23 08:34:37 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.

This pull request has now been integrated.

Changeset: fe7ec312
Author:    Andrey Turbanov <aturbanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/fe7ec312590ed9f70e6caad4ef454123138bbbcf
Stats:     9 lines in 1 file changed: 0 ins; 7 del; 2 mod

8359996: Remove unnecessary List.indexOf key from Track.remove

Reviewed-by: aivanov, liach, azvegint

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

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


More information about the client-libs-dev mailing list