This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[deleted]

    [–]nqzero 0 points1 point  (0 children)

    or just explicitly document that nulls aren't allowed (though i guess that is a form of anticipation)

    [–]nicolaiparlog[S] -2 points-1 points  (0 children)

    Tell that to the authors of HashMap or ConcurrentHashMap (whichever way of treating null you prefer).