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[])`. This pull request has now been integrated. Changeset: 35b399ac Author: Andrey Turbanov <turban...@gmail.com> Committer: Jayathirth D V <j...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/35b399aca810db63371ff65046f047ef0b955161 Stats: 70 lines in 8 files changed: 0 ins; 54 del; 16 mod 8269130: Replace usages of Collection.toArray() with Collection.toArray(T[]) to avoid redundant array copying Reviewed-by: mullan, serb ------------- PR: https://git.openjdk.java.net/jdk/pull/4487