From 126490251721d131098a0bc2def8fd02f97cd5af Mon Sep 17 00:00:00 2001 From: Naoto Sato Date: Wed, 31 May 2023 15:56:40 +0000 Subject: [PATCH] 8308316: Default decomposition mode in Collator Reviewed-by: rriggs --- src/java.base/share/classes/java/text/Collator.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/java.base/share/classes/java/text/Collator.java b/src/java.base/share/classes/java/text/Collator.java index 91a3640c58a..be158d034c4 100644 --- a/src/java.base/share/classes/java/text/Collator.java +++ b/src/java.base/share/classes/java/text/Collator.java @@ -170,7 +170,7 @@ public abstract class Collator /** * Decomposition mode value. With NO_DECOMPOSITION * set, accented characters will not be decomposed for collation. This - * is the default setting and provides the fastest collation but + * setting provides the fastest collation but * will only produce correct results for languages that do not use accents. * @see java.text.Collator#getDecomposition * @see java.text.Collator#setDecomposition @@ -244,7 +244,7 @@ public abstract class Collator * level2 * SECONDARY * level3 - * TERTIARY + * TERTIARY* * identic * IDENTICAL * @@ -256,11 +256,12 @@ public abstract class Collator * true * CANONICAL_DECOMPOSITION * false - * NO_DECOMPOSITION + * NO_DECOMPOSITION* * * + * Asterisk (*) denotes the default value. * If the specified setting value is not recognized, the strength and/or - * decomposition will not be overridden, as if there were no BCP 47 collation + * decomposition is not overridden, as if there were no BCP 47 collation * options in the desired locale. * * @apiNote Implementations of {@code Collator} class may produce