On Thu, 26 Jan 2023 20:58:45 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:

> No need to fill elements of array with default values if it was just created. 
> Java guarantees that all elements of numeric array have default values after 
> allocations - 0.

This pull request has now been integrated.

Changeset: 9af2ea20
Author:    Andrey Turbanov <aturba...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/9af2ea203db8b2f3da224bf0582411a9a9855c02
Stats:     7 lines in 2 files changed: 0 ins; 5 del; 2 mod

8301828: Avoid unnecessary array fill after creation in javax.swing.text

Reviewed-by: prr, serb

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

PR: https://git.openjdk.org/jdk/pull/12235

Reply via email to