On Wed, 13 Apr 2022 22:20:14 GMT, XenoAmess <d...@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:
> 
>   update LastModified

src/java.base/share/classes/java/lang/Character.java line 8574:

> 8572:         private static final HashMap<String, Character.UnicodeScript> 
> aliases;
> 8573:         static {
> 8574:             aliases = HashMap.newHashMap(162);

@naotoj Seems like this magic number is likely to go out of date. Should there 
be a test for it like the one you updated for NUM_ENTITIES? 
[JDK-8283465](https://bugs.openjdk.java.net/browse/JDK-8283465).

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

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

Reply via email to