RFR JDK-8225339 Optimize HashMap.keySet()/HashMap.values()/HashSet toArray() methods

Tagir Valeev amaembo at gmail.com
Wed Jun 12 11:19:33 UTC 2019


Hello!


I've got a question regarding variables 'r' in lines 946 and 969:
>
> why do you need them when 'a' is returned from the method?
>
>
Otherwise I would need to add an unchecked cast at lines 952 and 975.

With best regards,
Tagir Valeev.


More information about the core-libs-dev mailing list