No need to call `List.indexOf(Object)` before `List.remove(int)`. Instead we 
can call `List.remove(Object)` directly. It's faster and cleaner.
`invalidComponents` is an ArrayList.

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

Commit messages:
 - [PATCH] Remove unnecessary List.indexOf key from 
RepaintManager.removeInvalidComponent

Changes: https://git.openjdk.org/jdk/pull/24845/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24845&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8357226
  Stats: 6 lines in 1 file changed: 0 ins; 3 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/24845.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24845/head:pull/24845

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

Reply via email to