> 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 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/24818/files - new: https://git.openjdk.org/jdk/pull/24818/files/83c1e794..1cb93d6b Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=24818&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=24818&range=00-01 Stats: 6 lines in 1 file changed: 0 ins; 5 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/24818.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/24818/head:pull/24818 PR: https://git.openjdk.org/jdk/pull/24818