On Tue, 24 Mar 2026 19:59:17 GMT, Andy Goryachev <[email protected]> wrote:

>> For any fluent apis I think this is unnecessary, because removing code 
>> duplications at all costs reduces readability.
>
> `createItemList(0, 15)`
> 
> is less readable than
> 
> `IntStream.range(0, 15).boxed().map(integer -> "Item " + integer).toList()`
> 
> ?

It's probably more about the increased cognitive load, as you now need to first 
check the method and remember what it does. And the size of the class.

Should I put this on my list for potential future improvements to the test 
setup @andy-goryachev-oracle ?

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

PR Review Comment: https://git.openjdk.org/jfx/pull/2118#discussion_r2983987083

Reply via email to