Skip to content

Commit c92bf3d

Browse files
Craigsven-oly
authored andcommitted
ICU-22723 Frontload ICU4J API promotions (BRS unicode-org#18)
1 parent feca6ee commit c92bf3d

File tree

13 files changed

+28
-28
lines changed

13 files changed

+28
-28
lines changed

icu4j/main/core/src/main/java/com/ibm/icu/lang/UProperty.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,23 +621,23 @@ public interface UProperty
621621
* Binary property IDS_Unary_Operator.
622622
* For programmatic determination of Ideographic Description Sequences.
623623
*
624-
* @draft ICU 74
624+
* @stable ICU 74
625625
*/
626626
public static final int IDS_UNARY_OPERATOR = 72;
627627

628628
/**
629629
* Binary property ID_Compat_Math_Start.
630630
* <p>Used in mathematical identifier profile in UAX #31.
631631
*
632-
* @draft ICU 74
632+
* @stable ICU 74
633633
*/
634634
public static final int ID_COMPAT_MATH_START = 73;
635635

636636
/**
637637
* Binary property ID_Compat_Math_Continue.
638638
* <p>Used in mathematical identifier profile in UAX #31.
639639
*
640-
* @draft ICU 74
640+
* @stable ICU 74
641641
*/
642642
public static final int ID_COMPAT_MATH_CONTINUE = 74;
643643

icu4j/main/core/src/main/java/com/ibm/icu/number/LocalizedNumberFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public Format toFormat() {
125125
* Disassociate the locale from this formatter.
126126
*
127127
* @return The fluent chain.
128-
* @draft ICU 74
128+
* @stable ICU 74
129129
*/
130130
public UnlocalizedNumberFormatter withoutLocale() {
131131
return new UnlocalizedNumberFormatter(this, KEY_LOCALE, null);

icu4j/main/core/src/main/java/com/ibm/icu/number/LocalizedNumberRangeFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public FormattedNumberRange formatRange(Number first, Number second) {
8686
* Disassociate the locale from this formatter.
8787
*
8888
* @return The fluent chain.
89-
* @draft ICU 74
89+
* @stable ICU 74
9090
*/
9191
public UnlocalizedNumberRangeFormatter withoutLocale() {
9292
return new UnlocalizedNumberRangeFormatter(this, KEY_LOCALE, null);

icu4j/main/core/src/main/java/com/ibm/icu/text/Normalizer2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public static Normalizer2 getNFKCCasefoldInstance() {
178178
* <p>Same as getInstance(null, "nfkc_scf", Mode.COMPOSE).
179179
* Returns an unmodifiable singleton instance.
180180
* @return the requested Normalizer2, if successful
181-
* @draft ICU 74
181+
* @stable ICU 74
182182
*/
183183
public static Normalizer2 getNFKCSimpleCasefoldInstance() {
184184
return Norm2AllModes.getNFKC_SCFInstance().comp;

icu4j/main/core/src/main/java/com/ibm/icu/text/PersonName.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,15 @@ enum FieldModifier {
182182
* Requests the genitive form of the field's contents, if possible. The default implementation
183183
* does nothing, but subclasses of PersonName can override getFieldValue() to produce the genitive
184184
* form (or just add an "xxx-genitive" entry to a SimplePersonName).
185-
* @draft ICU 74
185+
* @stable ICU 74
186186
*/
187187
GENITIVE("genitive"),
188188

189189
/**
190190
* Requests the vocative form of the field's contents, if possible. The default implementation
191191
* does nothing, but subclasses of PersonName can override getFieldValue() to produce the vocative
192192
* form (or just add an "xxx-vocative" entry to a SimplePersonName).
193-
* @draft ICU 74
193+
* @stable ICU 74
194194
*/
195195
VOCATIVE("vocative");
196196

icu4j/main/core/src/main/java/com/ibm/icu/text/PersonNameFormatter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public enum Length {
9696

9797
/**
9898
* The default name length for the locale. For most locales, this is the same as MEDIUM.
99-
* @draft ICU 74
99+
* @stable ICU 74
100100
*/
101101
DEFAULT
102102
}
@@ -149,7 +149,7 @@ public enum Formality {
149149
/**
150150
* The default formality for the locale. For most locales, this is the same as FORMAL, but for English,
151151
* this is the same as INFORMAL.
152-
* @draft ICU 74
152+
* @stable ICU 74
153153
*/
154154
DEFAULT
155155
}
@@ -176,14 +176,14 @@ public enum DisplayOrder {
176176
/**
177177
* Forces the formatter to format the name in given-first order. If the name itself specifies
178178
* a display order, this overrides it.
179-
* @draft ICU 74
179+
* @stable ICU 74
180180
*/
181181
FORCE_GIVEN_FIRST,
182182

183183
/**
184184
* Forces the formatter to format the name in surname-first order. If the name itself specifies
185185
* a display order, this overrides it.
186-
* @draft ICU 74
186+
* @stable ICU 74
187187
*/
188188
FORCE_SURNAME_FIRST,
189189
}

icu4j/main/core/src/main/java/com/ibm/icu/text/SpoofChecker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,7 @@ public int areConfusable(String s1, String s2) {
14891489
* The second of the two strings to be compared for confusability.
14901490
* @return Non-zero if s1 and s1 are confusable. If not 0, the value will indicate the type(s) of confusability
14911491
* found, as defined by spoof check test constants.
1492-
* @draft ICU 74
1492+
* @stable ICU 74
14931493
*/
14941494
public int areConfusable(int direction, CharSequence s1, CharSequence s2) {
14951495
//
@@ -1554,7 +1554,7 @@ public int areConfusable(int direction, CharSequence s1, CharSequence s2) {
15541554
* @param str The input string whose bidiSkeleton will be generated.
15551555
* @return The output skeleton string.
15561556
*
1557-
* @draft ICU 74
1557+
* @stable ICU 74
15581558
*/
15591559
public String getBidiSkeleton(int direction, CharSequence str) {
15601560
if (direction != Bidi.DIRECTION_LEFT_TO_RIGHT && direction != Bidi.DIRECTION_RIGHT_TO_LEFT) {

icu4j/main/core/src/main/java/com/ibm/icu/util/CECalendar.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public static void jdToCE(int julianDay, int jdEpochOffset, int[] fields) {
288288
* month in each year in the CECalendar, the value is "M13".
289289
*
290290
* @return One of 13 possible strings in {"M01".. "M12", "M13"}.
291-
* @draft ICU 74
291+
* @stable ICU 74
292292
*/
293293
public String getTemporalMonthCode() {
294294
if (get(MONTH) == 12) return "M13";
@@ -302,7 +302,7 @@ public String getTemporalMonthCode() {
302302
* (non-leap) year. For CECalendar calendar, the values are "M01" .. "M13"
303303
* while the "M13" is represent the short thirteen month in each year.
304304
* @param temporalMonth One of 13 possible strings in {"M01".. "M12", "M13"}.
305-
* @draft ICU 74
305+
* @stable ICU 74
306306
*/
307307
public void setTemporalMonthCode( String temporalMonth ) {
308308
if (temporalMonth.equals("M13")) {

icu4j/main/core/src/main/java/com/ibm/icu/util/Calendar.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
975975
* is associated with ORDINAL_MONTH value 6 because 4665 is a leap year
976976
* and there is an extra "Leap Month 5" which associated with ORDINAL_MONTH
977977
* value 5 before "Month 6" of year 4664.
978-
* @draft ICU 74
978+
* @stable ICU 74
979979
*/
980980
public static final int ORDINAL_MONTH = 23;
981981

@@ -2074,7 +2074,7 @@ public void setTimeInMillis( long millis ) {
20742074
* proposal.
20752075
* @return true if the date in the fields is in a Temporal proposal
20762076
* defined leap year. False otherwise.
2077-
* @draft ICU 74
2077+
* @stable ICU 74
20782078
*/
20792079
public boolean inTemporalLeapYear() {
20802080
// Default to Gregorian based leap year rule.
@@ -2100,7 +2100,7 @@ public boolean inTemporalLeapYear() {
21002100
* years are "M01" to "M13".
21012101
*
21022102
* @return One of 25 possible strings in {"M01".."M13", "M01L".."M12L"}.
2103-
* @draft ICU 74
2103+
* @stable ICU 74
21042104
*/
21052105
public String getTemporalMonthCode() {
21062106
int month = get(MONTH);
@@ -2124,7 +2124,7 @@ public String getTemporalMonthCode() {
21242124
* years are "M01" to "M13".
21252125
* @param temporalMonth One of 25 possible strings in {"M01".. "M12", "M13", "M01L",
21262126
* "M12L"}.
2127-
* @draft ICU 74
2127+
* @stable ICU 74
21282128
*/
21292129
public void setTemporalMonthCode( String temporalMonth ) {
21302130
if (temporalMonth.length() == 3 && temporalMonth.charAt(0) == 'M') {

icu4j/main/core/src/main/java/com/ibm/icu/util/ChineseCalendar.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ private void readObject(ObjectInputStream stream)
10601060
* proposal.
10611061
* @return true if the date in the fields is in a Temporal proposal
10621062
* defined leap year. False otherwise.
1063-
* @draft ICU 74
1063+
* @stable ICU 74
10641064
*/
10651065
public boolean inTemporalLeapYear() {
10661066
return getActualMaximum(DAY_OF_YEAR) > 360;
@@ -1080,7 +1080,7 @@ public boolean inTemporalLeapYear() {
10801080
* non-leap year and * in leap year with another monthCode in "M01L" .. "M12L".
10811081
*
10821082
* @return One of 24 possible strings in {"M01".."M12", "M01L".."M12L"}.
1083-
* @draft ICU 74
1083+
* @stable ICU 74
10841084
*/
10851085
public String getTemporalMonthCode() {
10861086
// We need to call get, not internalGet, to force the calculation
@@ -1102,7 +1102,7 @@ public String getTemporalMonthCode() {
11021102
* in leap year with another monthCode in "M01L" .. "M12L".
11031103
* @param temporalMonth One of 25 possible strings in {"M01".. "M12", "M13", "M01L",
11041104
* "M12L"}.
1105-
* @draft ICU 74
1105+
* @stable ICU 74
11061106
*/
11071107
public void setTemporalMonthCode( String temporalMonth ) {
11081108
if (temporalMonth.length() != 4 || temporalMonth.charAt(0) != 'M' || temporalMonth.charAt(3) != 'L') {

0 commit comments

Comments
 (0)