<i18n dev> RFR: 8271603: Unnecessary Vector usage in java.desktop [v7]
Sergey Bylokhov
serb at openjdk.java.net
Sat Sep 4 00:40:54 UTC 2021
On Fri, 3 Sep 2021 08:04:52 GMT, Andrey Turbanov <github.com+741251+turbanoff at openjdk.org> wrote:
>> 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
Marked as reviewed by serb (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/4680
More information about the i18n-dev
mailing list