On Wed, 27 Sep 2023 08:50:20 GMT, Mourad Abbay <[email protected]> wrote:
> Remove redundant type cast in the java.util.stream package.
src/java.base/share/classes/java/util/stream/DoublePipeline.java line 391:
> 389: if (maxSize < 0)
> 390: throw new IllegalArgumentException(Long.toString(maxSize));
> 391: return SliceOps.makeDouble(this, 0, maxSize);
Suggestion:
return SliceOps.makeDouble(this, 0L, maxSize);
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15942#discussion_r1339158996