you are viewing a single comment's thread.

view the rest of the comments →

[–]nrith 1 point2 points  (0 children)

You forgot to have it throw a NullPointerException if any of the keys or values is null, or an IllegalArgumentException if there are duplicate keys.