On Tue, 21 Mar 2023 07:29:49 GMT, Per Minborg <pminb...@openjdk.org> wrote:

>> 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.

Yes, `Integer::valueOf` is a better replacement of individual `intIdentity` 
calls. Thought you may want this method so only one lambda callsite would be 
generated.

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

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

Reply via email to