-
Bug
-
Resolution: Fixed
-
P4
-
26
-
None
-
master
-
generic
-
generic
LanguageTag builds a HashMap which contains a String to Array of String mapping. As all the legacy tags are known, we could reduce the need for the map + the 26 String arrays by replacing the mapping with a String to String switch statement. This would facilitate cleanup of all the calculations performed in the static block of LanguageTag: creating the map, case folding all the legacy tag keys to lower case, and populating the map.
Instead of requiring the case folded legacy tag, we can map the keys as lower case legacy tags, and fold them correctly on demand. This should be reasonable since those legacy tags are grandfathered and are not subject to change, so our process on case-folding the non standard tags should remain stable.
Instead of requiring the case folded legacy tag, we can map the keys as lower case legacy tags, and fold them correctly on demand. This should be reasonable since those legacy tags are grandfathered and are not subject to change, so our process on case-folding the non standard tags should remain stable.
- links to
-
Commit(master) openjdk/jdk/23a65644
-
Review(master) openjdk/jdk/27596