<i18n dev> RFR: 8301552: Use AtomicReferenceArray for caching instead of CHM in ZoneOffset [v8]

Per Minborg pminborg at openjdk.org
Tue Mar 21 07:32:49 UTC 2023


On Tue, 21 Mar 2023 07:27:59 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> test/jdk/jdk/internal/util/LazyReferenceArray/BasicLazyReferenceArrayTest.java line 107:
>> 
>>> 105: 
>>> 106:     private static IntFunction<Integer> intIdentity() {
>>> 107:         return i -> i;
>> 
>> Can't this be `Integer::valueOf`?
>
> It can. I think either works fine. Maybe a bit nicer with a method reference as you propose.

Perhaps you mean the method could be *replaced* with `Integer::valueOf"? Good suggestion.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/12346#discussion_r1142974996


More information about the i18n-dev mailing list