RFR: 8360487: Remove unnecessary List.indexOf key from AbstractMidiDevice.TransmitterList.remove

Alexey Ivanov aivanov at openjdk.org
Wed Jun 25 20:36:27 UTC 2025


On Mon, 23 Jun 2025 08:53:16 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.

Marked as reviewed by aivanov (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/25931#pullrequestreview-2959578963


More information about the client-libs-dev mailing list