From 75a1514889083c7be6c3367be15b6c9f6c3a426f Mon Sep 17 00:00:00 2001 From: Craig Cornelius Date: Tue, 17 Aug 2021 00:10:46 +0000 Subject: [PATCH] ICU-21581 BRS#18 Promote @draft ICU4J API elements from version 68 to @stable See #1788 --- .../icu/util/GlobalizationPreferences.java | 1 - .../com/ibm/icu/number/FormattedNumber.java | 2 +- .../icu/number/NumberFormatterSettings.java | 2 +- .../com/ibm/icu/text/DateIntervalFormat.java | 4 +- .../src/com/ibm/icu/text/DecimalFormat.java | 4 +- .../src/com/ibm/icu/text/PluralRules.java | 2 +- .../icu/util/ICUInputTooLongException.java | 10 +-- .../src/com/ibm/icu/util/LocaleMatcher.java | 10 +-- .../src/com/ibm/icu/util/MeasureUnit.java | 90 +++++++++---------- .../core/src/com/ibm/icu/util/NoUnit.java | 8 +- 10 files changed, 66 insertions(+), 67 deletions(-) diff --git a/icu4j/main/classes/collate/src/com/ibm/icu/util/GlobalizationPreferences.java b/icu4j/main/classes/collate/src/com/ibm/icu/util/GlobalizationPreferences.java index e458c0bcc2e..d5c05dfea78 100644 --- a/icu4j/main/classes/collate/src/com/ibm/icu/util/GlobalizationPreferences.java +++ b/icu4j/main/classes/collate/src/com/ibm/icu/util/GlobalizationPreferences.java @@ -1466,4 +1466,3 @@ public class GlobalizationPreferences implements Freezable splitToSingleUnits() { final ArrayList singleUnits = @@ -1361,7 +1361,7 @@ public class MeasureUnit implements Serializable { /** * Constant for unit of graphics: dot - * @draft ICU 68 + * @stable ICU 68 */ public static final MeasureUnit DOT = MeasureUnit.internalGetInstance("graphics", "dot"); @@ -1427,7 +1427,7 @@ public class MeasureUnit implements Serializable { /** * Constant for unit of length: earth-radius - * @draft ICU 68 + * @stable ICU 68 */ public static final MeasureUnit EARTH_RADIUS = MeasureUnit.internalGetInstance("length", "earth-radius"); @@ -1541,13 +1541,13 @@ public class MeasureUnit implements Serializable { /** * Constant for unit of light: candela - * @draft ICU 68 + * @stable ICU 68 */ public static final MeasureUnit CANDELA = MeasureUnit.internalGetInstance("light", "candela"); /** * Constant for unit of light: lumen - * @draft ICU 68 + * @stable ICU 68 */ public static final MeasureUnit LUMEN = MeasureUnit.internalGetInstance("light", "lumen"); @@ -1583,7 +1583,7 @@ public class MeasureUnit implements Serializable { /** * Constant for unit of mass: grain - * @draft ICU 68 + * @stable ICU 68 */ public static final MeasureUnit GRAIN = MeasureUnit.internalGetInstance("mass", "grain"); @@ -1895,25 +1895,25 @@ public class MeasureUnit implements Serializable { /** * Constant for unit of volume: dessert-spoon - * @draft ICU 68 + * @stable ICU 68 */ public static final MeasureUnit DESSERT_SPOON = MeasureUnit.internalGetInstance("volume", "dessert-spoon"); /** * Constant for unit of volume: dessert-spoon-imperial - * @draft ICU 68 + * @stable ICU 68 */ public static final MeasureUnit DESSERT_SPOON_IMPERIAL = MeasureUnit.internalGetInstance("volume", "dessert-spoon-imperial"); /** * Constant for unit of volume: dram - * @draft ICU 68 + * @stable ICU 68 */ public static final MeasureUnit DRAM = MeasureUnit.internalGetInstance("volume", "dram"); /** * Constant for unit of volume: drop - * @draft ICU 68 + * @stable ICU 68 */ public static final MeasureUnit DROP = MeasureUnit.internalGetInstance("volume", "drop"); @@ -1949,7 +1949,7 @@ public class MeasureUnit implements Serializable { /** * Constant for unit of volume: jigger - * @draft ICU 68 + * @stable ICU 68 */ public static final MeasureUnit JIGGER = MeasureUnit.internalGetInstance("volume", "jigger"); @@ -1973,7 +1973,7 @@ public class MeasureUnit implements Serializable { /** * Constant for unit of volume: pinch - * @draft ICU 68 + * @stable ICU 68 */ public static final MeasureUnit PINCH = MeasureUnit.internalGetInstance("volume", "pinch"); @@ -1997,7 +1997,7 @@ public class MeasureUnit implements Serializable { /** * Constant for unit of volume: quart-imperial - * @draft ICU 68 + * @stable ICU 68 */ public static final MeasureUnit QUART_IMPERIAL = MeasureUnit.internalGetInstance("volume", "quart-imperial"); diff --git a/icu4j/main/classes/core/src/com/ibm/icu/util/NoUnit.java b/icu4j/main/classes/core/src/com/ibm/icu/util/NoUnit.java index e617f5241e8..d73e54bf8ab 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/util/NoUnit.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/util/NoUnit.java @@ -7,7 +7,7 @@ import com.ibm.icu.number.NumberFormatter; /** * Dimensionless unit for percent and permille. * @see NumberFormatter - * @draft ICU 68 + * @stable ICU 68 */ public final class NoUnit { /** @@ -17,7 +17,7 @@ public final class NoUnit { * * Since ICU 68, this constant equals null. * - * @draft ICU 68 + * @stable ICU 68 */ public static final MeasureUnit BASE = null; @@ -28,7 +28,7 @@ public final class NoUnit { * * Since ICU 68, this constant is equivalent to MeasureUnit.PERCENT. * - * @draft ICU 68 + * @stable ICU 68 */ public static final MeasureUnit PERCENT = MeasureUnit.PERCENT; @@ -39,7 +39,7 @@ public final class NoUnit { * * Since ICU 68, this constant is equivalent to MeasureUnit.PERMILLE. * - * @draft ICU 68 + * @stable ICU 68 */ public static final MeasureUnit PERMILLE = MeasureUnit.PERMILLE; -- 2.40.0