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

Andrey Turbanov aturbanov at openjdk.org
Sun Feb 5 09:24:30 UTC 2023


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.

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

Commit messages:
 - [PATCH] Avoid unnecessary array fill after creation in javax.swing.text

Changes: https://git.openjdk.org/jdk/pull/12235/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12235&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8301828
  Stats: 7 lines in 2 files changed: 0 ins; 5 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/12235.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12235/head:pull/12235

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



More information about the client-libs-dev mailing list