RFR: 8300929: Avoid unnecessary array fill after creation in java.awt.image

SWinxy duke at openjdk.org
Mon Jan 23 21:13:06 UTC 2023


On Mon, 23 Jan 2023 17:20:41 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.

Marked as reviewed by SWinxy at github.com (no known OpenJDK username).

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

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



More information about the client-libs-dev mailing list