From 2f8915283096b811f62e27e9d39a8f6b29c05f33 Mon Sep 17 00:00:00 2001 From: Craig Cornelius Date: Tue, 9 Mar 2021 08:35:20 -0800 Subject: [PATCH] ICU-21480 BRS#18 ICU4J promotions to stable --- .../com/ibm/icu/number/NumberFormatter.java | 4 +- .../ibm/icu/text/CurrencyDisplayNames.java | 4 +- .../core/src/com/ibm/icu/text/DateFormat.java | 10 ++-- .../icu/text/DateTimePatternGenerator.java | 2 +- .../src/com/ibm/icu/text/ListFormatter.java | 50 +++++++++---------- .../core/src/com/ibm/icu/util/Currency.java | 4 +- .../src/com/ibm/icu/util/LocaleMatcher.java | 8 +-- .../core/src/com/ibm/icu/util/ULocale.java | 2 +- 8 files changed, 42 insertions(+), 42 deletions(-) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java b/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java index 99e9ae374ca..7a1f6c0b48e 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java @@ -212,7 +212,7 @@ public final class NumberFormatter { *

* Behavior of this option with non-currency units is not defined at this time. * - * @draft ICU 67 + * @stable ICU 67 * @see NumberFormatter */ FORMAL, @@ -224,7 +224,7 @@ public final class NumberFormatter { *

* Behavior of this option with non-currency units is not defined at this time. * - * @draft ICU 67 + * @stable ICU 67 * @see NumberFormatter */ VARIANT, diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/CurrencyDisplayNames.java b/icu4j/main/classes/core/src/com/ibm/icu/text/CurrencyDisplayNames.java index 811e868e6a8..c8460b42cc3 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/CurrencyDisplayNames.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/CurrencyDisplayNames.java @@ -149,7 +149,7 @@ public abstract class CurrencyDisplayNames { * * @param isoCode the three-letter ISO code. * @return the formal symbol. - * @draft ICU 67 + * @stable ICU 67 */ public abstract String getFormalSymbol(String isoCode); @@ -164,7 +164,7 @@ public abstract class CurrencyDisplayNames { * * @param isoCode the three-letter ISO code. * @return the variant symbol. - * @draft ICU 67 + * @stable ICU 67 */ public abstract String getVariantSymbol(String isoCode); diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/DateFormat.java b/icu4j/main/classes/core/src/com/ibm/icu/text/DateFormat.java index 5d5a9d07842..6cd03d64567 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/DateFormat.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/DateFormat.java @@ -537,30 +537,30 @@ public abstract class DateFormat extends UFormat { /** * Hour Cycle - * @draft ICU 67 + * @stable ICU 67 */ public enum HourCycle { /** * hour in am/pm (0~11) - * @draft ICU 67 + * @stable ICU 67 */ HOUR_CYCLE_11, /** * hour in am/pm (1~12) - * @draft ICU 67 + * @stable ICU 67 */ HOUR_CYCLE_12, /** * hour in day (0~23) - * @draft ICU 67 + * @stable ICU 67 */ HOUR_CYCLE_23, /** * hour in day (1~24) - * @draft ICU 67 + * @stable ICU 67 */ HOUR_CYCLE_24; }; diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/DateTimePatternGenerator.java b/icu4j/main/classes/core/src/com/ibm/icu/text/DateTimePatternGenerator.java index 8a09b68ff6b..528eed80e01 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/DateTimePatternGenerator.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/DateTimePatternGenerator.java @@ -1357,7 +1357,7 @@ public class DateTimePatternGenerator implements Freezable A appendTo(A appendable) { @@ -247,7 +247,7 @@ final public class ListFormatter { /** * {@inheritDoc} - * @draft ICU 67 + * @stable ICU 67 */ @Override public boolean nextPosition(ConstrainedFieldPosition cfpos) { @@ -256,7 +256,7 @@ final public class ListFormatter { /** * {@inheritDoc} - * @draft ICU 67 + * @stable ICU 67 */ @Override public AttributedCharacterIterator toCharacterIterator() { @@ -310,7 +310,7 @@ final public class ListFormatter { * @param locale * the locale in question. * @return ListFormatter - * @draft ICU 67 + * @stable ICU 67 */ public static ListFormatter getInstance(ULocale locale, Type type, Width width) { String styleName = typeWidthToStyleString(type, width); @@ -326,7 +326,7 @@ final public class ListFormatter { * @param locale * the locale in question. * @return ListFormatter - * @draft ICU 67 + * @stable ICU 67 */ public static ListFormatter getInstance(Locale locale, Type type, Width width) { return getInstance(ULocale.forLocale(locale), type, width); @@ -397,7 +397,7 @@ final public class ListFormatter { * @param items * items to format. The toString() method is called on each. * @return items formatted into a FormattedList - * @draft ICU 67 + * @stable ICU 67 */ public FormattedList formatToValue(Object... items) { return formatToValue(Arrays.asList(items)); @@ -411,7 +411,7 @@ final public class ListFormatter { * @param items * items to format. The toString() method is called on each. * @return items formatted into a FormattedList - * @draft ICU 67 + * @stable ICU 67 */ public FormattedList formatToValue(Collection items) { return formatImpl(items, true).toValue(); diff --git a/icu4j/main/classes/core/src/com/ibm/icu/util/Currency.java b/icu4j/main/classes/core/src/com/ibm/icu/util/Currency.java index 2c40e557620..03bcc1f8f54 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/util/Currency.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/util/Currency.java @@ -106,7 +106,7 @@ public class Currency extends MeasureUnit { * but it always takes the form used in formal settings such as banking; * for example, "NT$" instead of "$" for TWD in zh-TW. * - * @draft ICU 67 + * @stable ICU 67 */ public static final int FORMAL_SYMBOL_NAME = 4; @@ -116,7 +116,7 @@ public class Currency extends MeasureUnit { * The variant symbol for a currency is an alternative symbol that is not * necessarily as widely used as the regular symbol. * - * @draft ICU 67 + * @stable ICU 67 */ public static final int VARIANT_SYMBOL_NAME = 5; diff --git a/icu4j/main/classes/core/src/com/ibm/icu/util/LocaleMatcher.java b/icu4j/main/classes/core/src/com/ibm/icu/util/LocaleMatcher.java index 07ae8882bd5..84bcc8876f3 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/util/LocaleMatcher.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/util/LocaleMatcher.java @@ -164,20 +164,20 @@ public final class LocaleMatcher { * but not if it is merely a fallback. * * @see LocaleMatcher.Builder#setDirection(LocaleMatcher.Direction) - * @draft ICU 67 + * @stable ICU 67 */ public enum Direction { /** * Locale matching includes one-way matches such as Breton→French. (default) * - * @draft ICU 67 + * @stable ICU 67 */ WITH_ONE_WAY, /** * Locale matching limited to two-way matches including e.g. Danish↔Norwegian * but ignoring one-way matches. * - * @draft ICU 67 + * @stable ICU 67 */ ONLY_TWO_WAY } @@ -522,7 +522,7 @@ public final class LocaleMatcher { * * @param direction the match direction to set. * @return this Builder object - * @draft ICU 67 + * @stable ICU 67 */ public Builder setDirection(Direction direction) { this.direction = direction; diff --git a/icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java b/icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java index 5727b377c05..7798ead97ea 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java @@ -501,7 +501,7 @@ public final class ULocale implements Serializable, Comparable { * Creates a ULocale from the locale by first canonicalizing the locale according to CLDR. * @param locale the ULocale to canonicalize * @return the ULocale created from the canonical version of the ULocale. - * @draft ICU 67 + * @stable ICU 67 */ public static ULocale createCanonical(ULocale locale) { return createCanonical(locale.getName()); -- 2.50.1