<i18n dev> RFR: 8321059: Unneeded array assignments in MergeCollation and CompactByteArray
Brett Okken
duke at openjdk.org
Thu Nov 30 21:29:05 UTC 2023
On Thu, 30 Nov 2023 20:46:12 GMT, Naoto Sato <naoto at openjdk.org> 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
More information about the i18n-dev
mailing list