src/java.base/share/classes/java/text/NumberFormat.java
changeset 57679 314e62bbdb16
parent 54206 003cc64366da
child 57956 e0b8b019d2f5
--- a/src/java.base/share/classes/java/text/NumberFormat.java	Wed Aug 07 22:43:49 2019 +0200
+++ b/src/java.base/share/classes/java/text/NumberFormat.java	Wed Aug 07 14:56:26 2019 -0700
@@ -575,6 +575,15 @@
     /**
      * Returns a currency format for the specified locale.
      *
+     * <p>If the specified locale contains the "{@code cf}" (
+     * <a href="https://www.unicode.org/reports/tr35/tr35.html#UnicodeCurrencyFormatIdentifier">
+     * currency format style</a>)
+     * <a href="../util/Locale.html#def_locale_extension">Unicode extension</a>,
+     * the returned currency format uses the style if it is available.
+     * Otherwise, the style uses the default "{@code standard}" currency format.
+     * For example, if the style designates "{@code account}", negative
+     * currency amounts use a pair of parentheses in some locales.
+     *
      * @param inLocale the desired locale
      * @return the {@code NumberFormat} instance for currency formatting
      */