RFR: 8285149: Using HashMap.newHashMap to replace new HashMap(int) [v3]
Sergey Bylokhov
serb at openjdk.java.net
Fri Apr 22 23:45:27 UTC 2022
On Wed, 20 Apr 2022 19:24:25 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:
>
> add more replaces
src/demo/share/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java line 291:
> 289:
> 290:
> 291: static HashMap strcache = HashMap.newHashMap(tscripts.length);
This code maintains compatibility with jdk1.4, not necessary to change it.
src/java.datatransfer/share/classes/java/awt/datatransfer/SystemFlavorMap.java line 815:
> 813: }
> 814:
> 815: Map<String, DataFlavor> retval =HashMap.newHashMap(natives.length);
missed space after '='
-------------
PR: https://git.openjdk.java.net/jdk/pull/8301
More information about the serviceability-dev
mailing list