diff --git a/src/java.base/share/classes/java/text/CollationKey.java b/src/java.base/share/classes/java/text/CollationKey.java index 61ad6758691..1729e131276 100644 --- a/src/java.base/share/classes/java/text/CollationKey.java +++ b/src/java.base/share/classes/java/text/CollationKey.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -68,7 +68,7 @@ package java.text; * The following example shows how {@code CollationKey}s might be used * to sort a list of {@code String}s. *
- ** * @see Collator diff --git a/src/java.base/share/classes/java/text/CompactNumberFormat.java b/src/java.base/share/classes/java/text/CompactNumberFormat.java index 30a1bf4be63..5fa477c47f2 100644 --- a/src/java.base/share/classes/java/text/CompactNumberFormat.java +++ b/src/java.base/share/classes/java/text/CompactNumberFormat.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -61,10 +61,10 @@ import java.util.stream.Collectors; * For example: *{@code + * {@snippet lang=java : * // Create an array of CollationKeys for the Strings to be sorted. * Collator myCollator = Collator.getInstance(); * CollationKey[] keys = new CollationKey[3]; @@ -89,7 +89,7 @@ package java.text; * System.out.println(keys[0].getSourceString()); * System.out.println(keys[1].getSourceString()); * System.out.println(keys[2].getSourceString()); - * }+ * } *
* To obtain a {@code CompactNumberFormat} for a locale, use one @@ -72,11 +72,11 @@ import java.util.stream.Collectors; * formatting. For example, * {@link NumberFormat#getCompactNumberInstance(Locale, Style)}. * - *
+ * } * *+ *{@snippet lang=java : * NumberFormat fmt = NumberFormat.getCompactNumberInstance( * Locale.forLanguageTag("hi-IN"), NumberFormat.Style.SHORT); * String result = fmt.format(1000); - *
@@ -131,7 +131,7 @@ import java.util.stream.Collectors; *
* Many characters in a compact pattern are taken literally, they are matched * during parsing and output unchanged during formatting. - * Special characters, + * {@linkplain DecimalFormat##special_pattern_character Special characters}, * on the other hand, stand for other characters, strings, or classes of * characters. They must be quoted, using single quote {@code ' (U+0027)} * unless noted otherwise, if they are to appear in the prefix or suffix @@ -170,10 +170,10 @@ import java.util.stream.Collectors; * Prefixoptional MinimumInteger Suffixoptional * Prefix: * Any Unicode characters except {@code U+FFFE}, {@code U+FFFF}, and - * special characters. + * {@linkplain DecimalFormat##special_pattern_character special characters}. * Suffix: * Any Unicode characters except {@code U+FFFE}, {@code U+FFFF}, and - * special characters. + * {@linkplain DecimalFormat##special_pattern_character special characters}. * MinimumInteger: * 0 * 0 MinimumInteger @@ -384,8 +384,7 @@ public final class CompactNumberFormat extends NumberFormat { * @param decimalPattern a decimal pattern for general number formatting * @param symbols the set of symbols to be used * @param compactPatterns an array of - * - * compact number patterns + * {@linkplain ##compact_number_patterns compact number patterns} * @throws NullPointerException if any of the given arguments is * {@code null} * @throws IllegalArgumentException if the given {@code decimalPattern} or the @@ -412,8 +411,7 @@ public final class CompactNumberFormat extends NumberFormat { * @param decimalPattern a decimal pattern for general number formatting * @param symbols the set of symbols to be used * @param compactPatterns an array of - * - * compact number patterns + * {@linkplain ##compact_number_patterns compact number patterns} * @param pluralRules a String designating plural rules which associate * the {@code Count} keyword, such as "{@code one}", and the * actual integer number. Its syntax is defined in Unicode Consortium's