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

Andrey Turbanov aturbanov at openjdk.org
Thu Jan 26 09:28:48 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.

Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:

  8300929: Avoid unnecessary array fill after creation in java.awt.image
  
  add clarifying comment for the 'bandOffsets'

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/12147/files
  - new: https://git.openjdk.org/jdk/pull/12147/files/52bf8583..059b01f7

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=12147&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=12147&range=00-01

  Stats: 2 lines in 1 file changed: 1 ins; 1 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/12147.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12147/head:pull/12147

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



More information about the client-libs-dev mailing list