RFR: 8351344: Avoid explicit Objects.requireNonNull in String.join
Raffaello Giulietti
rgiulietti at openjdk.org
Thu Mar 6 19:16:01 UTC 2025
On Thu, 20 Feb 2025 09:30:02 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
> We have helpful NPE messages now - they are more user-friendly.
> And shorter methods are more likely to be inlined.
I second @jaikiran in that the `Objects.requireNonNull()` are there to clearly validate the arguments right at method entry.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23710#issuecomment-2704726863
More information about the core-libs-dev
mailing list