On Tue, 21 Mar 2023 07:27:59 GMT, Per Minborg <[email protected]> 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