<i18n dev> RFR: 8271603: Unnecessary Vector usage in java.desktop

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Mon Aug 9 07:21:47 UTC 2021

Usage of thread-safe collection `Vector` is unnecessary. It's recommended to use `ArrayList` if a thread-safe implementation is not needed. In post-BiasedLocking times, this is gets worse, as every access is synchronized.
I checked only places where `Vector` was used as local variable.


Commit messages:
 - [PATCH] Unnecessary Vector usage in java.desktop
 - [PATCH] Unnecessary Vector usage in java.desktop

Changes: https://git.openjdk.java.net/jdk/pull/4680/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4680&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8271603
  Stats: 51 lines in 5 files changed: 3 ins; 16 del; 32 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4680.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4680/head:pull/4680

PR: https://git.openjdk.java.net/jdk/pull/4680

More information about the i18n-dev mailing list