map and null values

Doug Lea dl at cs.oswego.edu
Thu Jan 3 08:55:58 PST 2013


On 01/03/13 11:09, Peter Levart wrote:
  http://dl.dropbox.com/u/101777488/jdk8-lambda/Map/webrev/index.html
>
> I proposed a simple change to remove(key, value) and replace(key, oldValue,
> newValue) that doesn't throw NPE when there are null values already in Map

The replacement of equals with Objects.equals seems fine and
will be slightly less hostile to some users; thanks.
It would need to also be reflected in spec.


>
> The other change was to compute() and merge() default methods.

Not quite (there is no key refresh in one branch) but can be
adapted.

-Doug




More information about the lambda-dev mailing list