Java 8 RFR 8024331: j.u.Map.computeIfPresent() default/nondefault implementations don't throw NPE if the remappingFunction is null and the key is absent
brian.burkhalter at Oracle.COM
Tue Sep 17 23:27:09 UTC 2013
On Sep 17, 2013, at 2:33 PM, Mike Duigou wrote:
> The Map/Defaults.java changes only test HashMap. It should probably be extended to test most/all of the other implementations.
OK I will add those.
> I have some worry that the superfluous assignment of the Objects.requireNonNull() result might have a non-negligible cost.
As I responded to Remi, I don't feel strongly about this.
I'll make the various updates and repost.
More information about the core-libs-dev