RFR: 8300828: Avoid unnecessary array fill after creation in com.sun.media.sound
SWinxy
duke at openjdk.org
Sun Jan 22 18:49:34 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 SWinxy at github.com (no known OpenJDK username).
-------------
PR: https://git.openjdk.org/jdk/pull/12130
More information about the client-libs-dev
mailing list