Skip to content

Commit ea110c3

Browse files
author
Justin Lu
committedNov 1, 2024
8343236: Use @APinote and @implSpec in j.util.Currency
Reviewed-by: iris, lancea, bpb, naoto
1 parent 5995786 commit ea110c3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎src/java.base/share/classes/java/util/Currency.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@
103103
* and/or minor unit are encountered, those entries are ignored and the remainder
104104
* of entries in file are processed.
105105
*
106-
* <p>
107-
* It is recommended to use {@link java.math.BigDecimal} class while dealing
106+
* @apiNote
107+
* It is recommended to use the {@link java.math.BigDecimal} class while dealing
108108
* with {@code Currency} or monetary values as it provides better handling of floating
109109
* point numbers and their operations.
110110
*
@@ -521,7 +521,8 @@ public String getCurrencyCode() {
521521
* {@linkplain Locale##def_locale_extension Unicode extensions},
522522
* the symbol returned from this method reflects
523523
* the value specified with that extension.
524-
* <p>
524+
*
525+
* @implSpec
525526
* This is equivalent to calling
526527
* {@link #getSymbol(Locale)
527528
* getSymbol(Locale.getDefault(Locale.Category.DISPLAY))}.
@@ -621,7 +622,8 @@ public String getNumericCodeAsString() {
621622
* the default {@link Locale.Category#DISPLAY DISPLAY} locale.
622623
* If there is no suitable display name found
623624
* for the default locale, the ISO 4217 currency code is returned.
624-
* <p>
625+
*
626+
* @implSpec
625627
* This is equivalent to calling
626628
* {@link #getDisplayName(Locale)
627629
* getDisplayName(Locale.getDefault(Locale.Category.DISPLAY))}.

0 commit comments

Comments
 (0)
Please sign in to comment.