mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8283698: Refactor Locale constructors used in src/test
Reviewed-by: iris, joehw
This commit is contained in:
parent
61698bd137
commit
d6b4693c05
182 changed files with 747 additions and 747 deletions
|
@ -74,7 +74,7 @@ import java.util.stream.Collectors;
|
|||
*
|
||||
* <blockquote><pre>
|
||||
* NumberFormat fmt = NumberFormat.getCompactNumberInstance(
|
||||
* new Locale("hi", "IN"), NumberFormat.Style.SHORT);
|
||||
* Locale.forLanguageTag("hi-IN"), NumberFormat.Style.SHORT);
|
||||
* String result = fmt.format(1000);
|
||||
* </pre></blockquote>
|
||||
*
|
||||
|
|
|
@ -2438,7 +2438,7 @@ public abstract class ResourceBundle {
|
|||
* import static java.util.ResourceBundle.Control.*;
|
||||
* ...
|
||||
* ResourceBundle bundle =
|
||||
* ResourceBundle.getBundle("MyResources", new Locale("fr", "CH"),
|
||||
* ResourceBundle.getBundle("MyResources", Locale.forLanguageTag("fr-CH"),
|
||||
* ResourceBundle.Control.getControl(FORMAT_PROPERTIES));
|
||||
* </pre>
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue