RFR: 8285149: Using HashMap.newHashMap to replace new HashMap(int) [v3]
XenoAmess
duke at openjdk.java.net
Sat Apr 23 14:35:00 UTC 2022
On Fri, 22 Apr 2022 23:31:41 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> 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.
@mrserb done.
> 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 '='
@mrserb done.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8301
More information about the serviceability-dev
mailing list