Implementations of PrimitiveIterator.OfInt#forEachRemaining(IntConsumer) doesn't check IntConsumer for null

Андрей Турбанов turbanoff at gmail.com
Tue Jun 5 20:17:35 UTC 2018


Hello.

I observe that implementations of `forEachRemaining` method inside
java.lang.CharSequence doesn't always compare IntConsumer parameter with
null.
Is there any reason why there is no nonNull check? Performance?

Andrey Turbanov.


More information about the core-libs-dev mailing list