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

SWinxy duke at openjdk.org
Thu Jan 26 16:17:29 UTC 2023


On Thu, 26 Jan 2023 09:24:25 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

>> That is not about the default values in the array but about missing initialization of `bandOffsets`, which we will skip intentionally. So it won't raise the question later why we initiated the Indices and not offsets.
>
> I've added comment and moved array declaration. I think currently code is clear enough.

Yeah, the message is super clear now.

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

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



More information about the client-libs-dev mailing list