On Thu, 30 Nov 2023 20:46:12 GMT, Naoto Sato <[email protected]> wrote:
> Removing the unnecessary array assignments.
src/java.base/share/classes/sun/text/CompactByteArray.java line 83:
> 81: for (i = 0; i < UNICODECOUNT; ++i) {
> 82: values[i] = defaultValue;
> 83: }
should this be `Arrays.fill(values, defaultValue);` ?
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Arrays.html#fill(byte%5B%5D,byte)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16912#discussion_r1411279673