On Mon, 14 Jun 2021 17:00:29 GMT, Andrey Turbanov 
<github.com+741251+turban...@openjdk.org> wrote:

> I found few places, where code initially perform `Object[] 
> Colleciton.toArray()` call and then manually copy array into another array 
> with required type.
> This PR cleanups such places to more shorter call `T[] 
> Collection.toArray(T[])`.

I think the same simlification can be done for some classes affected by your 
previous PR https://github.com/openjdk/jdk/pull/4482, e.g. `HttpsClient`, lines 
154-157 and 177-180 and `PKCS7`, so I'd wait for 
https://github.com/openjdk/jdk/pull/4482 and then add one more commit here.

@turbanoff I've filed a ticket for this: 
https://bugs.openjdk.java.net/browse/JDK-8269130. Also I think you can 
integrate https://github.com/openjdk/jdk/pull/4482

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

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

Reply via email to