mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8284856: Add a test case for checking UnicodeScript entity numbers
Reviewed-by: iris, smarks
This commit is contained in:
parent
a5bb210589
commit
eb9c457b41
2 changed files with 13 additions and 5 deletions
|
@ -5285,7 +5285,7 @@ class Character implements java.io.Serializable, Comparable<Character>, Constabl
|
|||
/**
|
||||
* Unicode script "Unknown".
|
||||
*/
|
||||
UNKNOWN;
|
||||
UNKNOWN; // must be the last enum constant for calculating the size of "aliases" hash map.
|
||||
|
||||
private static final int[] scriptStarts = {
|
||||
0x0000, // 0000..0040; COMMON
|
||||
|
@ -8571,7 +8571,7 @@ class Character implements java.io.Serializable, Comparable<Character>, Constabl
|
|||
|
||||
private static final HashMap<String, Character.UnicodeScript> aliases;
|
||||
static {
|
||||
aliases = HashMap.newHashMap(162);
|
||||
aliases = HashMap.newHashMap(UNKNOWN.ordinal() + 1);
|
||||
aliases.put("ADLM", ADLAM);
|
||||
aliases.put("AGHB", CAUCASIAN_ALBANIAN);
|
||||
aliases.put("AHOM", AHOM);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue