RFR: 8300828: Avoid unnecessary array fill after creation in com.sun.media.sound

Sergey Bylokhov serb at openjdk.org
Sun Jan 22 19:50:00 UTC 2023


On Sat, 21 Jan 2023 19:44:39 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 array have default values after allocations: boolean - `false`, reference types - `null`, double - `0.`

Marked as reviewed by serb (Reviewer).

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

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



More information about the client-libs-dev mailing list