RFR: 8186958: Need method to create pre-sized HashMap [v10]

Stuart Marks smarks at openjdk.java.net
Wed Apr 6 00:57:43 UTC 2022


On Sat, 2 Apr 2022 22:46:19 GMT, XenoAmess <duke at openjdk.java.net> wrote:

>> 8186958: Need method to create pre-sized HashMap
>
> XenoAmess has updated the pull request incrementally with one additional commit since the last revision:
> 
>   revert changes in jdk.compile

src/java.base/share/classes/java/util/LinkedHashMap.java line 792:

> 790: 
> 791:     /**
> 792:      * Creates a new, empty LinkedHashMap suitable for the expected number of mappings.

Adjust wording here to read,

    Creates a new, empty, insertion-ordered LinkedHashMap suitable...

I've used this wording in the CSR.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7928


More information about the core-libs-dev mailing list