Collections.java:

4987         @Override
4988         public int hashCode() {
4989             return (k == null ? 0 : k.hashCode()) ^
4990                    (v == null ? 0 : v.hashCode());

Why not use Objects.hashCode here too, that is return Objects.hashCode(k) ^ 
Objects.hashCode(v) ?

Attila.

> On 11 Jan 2017, at 14:43, Claes Redestad <claes.redes...@oracle.com> wrote:
> 
>> ...
> 
> All done:
> 
> http://cr.openjdk.java.net/~redestad/8166365/webrev.02/
> 
> Thanks for the thorough review!
> 
> /Claes

Reply via email to