Re: RFR: 8300731: Avoid unnecessary array fill after creation in PaletteBuilder

2023-01-20 Thread Sergey Bylokhov
On Thu, 19 Jan 2023 19:32:05 GMT, Andrey Turbanov wrote: > No need to fill elements of array with `null`: it was just created. Java > guarantees that all elements of array are `null`s anyway. Marked as reviewed by serb (Reviewer). - PR: https://git.openjdk.org/jdk/pull/12101

Re: RFR: 8300731: Avoid unnecessary array fill after creation in PaletteBuilder

2023-01-20 Thread Phil Race
On Thu, 19 Jan 2023 19:32:05 GMT, Andrey Turbanov wrote: > No need to fill elements of array with `null`: it was just created. Java > guarantees that all elements of array are `null`s anyway. Marked as reviewed by prr (Reviewer). - PR: https://git.openjdk.org/jdk/pull/12101

Re: RFR: 8300731: Avoid unnecessary array fill after creation in PaletteBuilder

2023-01-20 Thread Sergey Bylokhov
On Thu, 19 Jan 2023 19:32:05 GMT, Andrey Turbanov wrote: > No need to fill elements of array with `null`: it was just created. Java > guarantees that all elements of array are `null`s anyway. looks fine - PR: https://git.openjdk.org/jdk/pull/12101

Re: RFR: 8300731: Avoid unnecessary array fill after creation in PaletteBuilder

2023-01-20 Thread SWinxy
On Thu, 19 Jan 2023 19:32:05 GMT, Andrey Turbanov wrote: > No need to fill elements of array with `null`: it was just created. Java > guarantees that all elements of array are `null`s anyway. Marked as reviewed by swi...@github.com (no known OpenJDK username). - PR: https://git.op

RFR: 8300731: Avoid unnecessary array fill after creation in PaletteBuilder

2023-01-20 Thread Andrey Turbanov
No need to fill elements of array with `null`: it was just created. Java guarantees that all elements of array are `null`s anyway. - Commit messages: - [PATCH] Avoid unnecessary array fill after creation Changes: https://git.openjdk.org/jdk/pull/12101/files Webrev: https://webrevs