RFR: 8285149: Using HashMap.newHashMap to replace new HashMap(int) [v5]

Weijun Wang weijun at openjdk.java.net
Thu Apr 28 17:43:43 UTC 2022


On Thu, 28 Apr 2022 16:56:38 GMT, XenoAmess <duke at openjdk.java.net> wrote:

>> These are the changes that too many to be reviewed in 8186958, thus split some of them out.
>
> XenoAmess has updated the pull request incrementally with one additional commit since the last revision:
> 
>   revert changes to java.desktop as prrace said

src/java.base/share/classes/sun/security/rsa/SunRsaSignEntries.java line 58:

> 56:         // start populating content using the specified provider
> 57:         // common attribute map
> 58:         HashMap<String, String> attrs = HashMap.newHashMap(3);

Looks like 1 is enough.

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

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


More information about the serviceability-dev mailing list