<i18n dev> RFR: 8271603: Unnecessary Vector usage in java.desktop [v7]
github.com+741251+turbanoff at openjdk.java.net
Fri Sep 3 08:04:52 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.
Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
8271603: Unnecessary Vector usage in java.desktop
one more place to call toArray with zero-sized array
- all: https://git.openjdk.java.net/jdk/pull/4680/files
- new: https://git.openjdk.java.net/jdk/pull/4680/files/2fb05a2c..f0ab7f17
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=4680&range=06
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=4680&range=05-06
Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod
Fetch: git fetch https://git.openjdk.java.net/jdk pull/4680/head:pull/4680
More information about the i18n-dev