Collectors factory methods don't check for null

Louis Wasserman lowasser at
Wed Dec 11 20:51:49 UTC 2013

For example, Collectors.toMap(Function, Function) does not throw if its
arguments are null; it's only when you actually try to use the Collector
that you get a failure.

This seems to be against established convention for JDK utilities.  Is
there a specific reason?

Louis Wasserman

More information about the core-libs-dev mailing list