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.`

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

Commit messages:
 - [PATCH] Avoid unnecessary array fill after creation in com.sun.media.sound

Changes: https://git.openjdk.org/jdk/pull/12130/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12130&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8300828
  Stats: 18 lines in 3 files changed: 0 ins; 14 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/12130.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12130/head:pull/12130

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

Reply via email to