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

Andrey Turbanov aturbanov at openjdk.org
Wed Feb 8 14:32:59 UTC 2023


On Thu, 26 Jan 2023 20:58:45 GMT, Andrey Turbanov <aturbanov at 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 <aturbanov at 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



More information about the client-libs-dev mailing list