No need to call `List.indexOf(Object)` before `List.remove(int)`. Instead we can call `List.remove(Object)` directly. It's faster and cleaner.
------------- Commit messages: - [PATCH] Remove unnecessary List.indexOf key from AbstractMidiDevice.TransmitterList.remove Changes: https://git.openjdk.org/jdk/pull/25931/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25931&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8360487 Stats: 5 lines in 1 file changed: 0 ins; 3 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/25931.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/25931/head:pull/25931 PR: https://git.openjdk.org/jdk/pull/25931