RFR: 8273299: Unnecessary Vector usage in java.security.jgss [v2]

Weijun Wang weijun at openjdk.java.net
Fri Sep 24 13:45:02 UTC 2021


On Thu, 23 Sep 2021 20:31:16 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.
>
> Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8273299: Unnecessary Vector usage in java.security.jgss
>   use result of toArray to make sure our array is properly filled

Looks fine to me. I'll run a round of test now.

And BTW, I've added a `noreg-cleanup` label to the bug.

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

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


More information about the security-dev mailing list