Andrey Turbanov:
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[]).
https://github.com/openjdk/jdk/pull/4487
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[]).
https://github.com/openjdk/jdk/pull/4487