Strange colon in CollationElementIterator javadoc
Naoto Sato
naoto.sato at oracle.com
Wed Oct 6 20:07:30 UTC 2021
It was meant to be a vertical ellipsis. In hindsight, we could use the
explicit character for that purpose. ('⋮' U+22EE)
Naoto
On 10/6/21 12:07 PM, Andrey Turbanov wrote:
> Hello.
> While reading the javadoc of CollationElementIterator I found a
> strange colon in the example.
>
> https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/text/CollationElementIterator.java#L87
>
> String testString = "This is a test";
> Collator col = Collator.getInstance();
> if (col instanceof RuleBasedCollator) {
> RuleBasedCollator ruleBasedCollator = (RuleBasedCollator)col;
> CollationElementIterator collationElementIterator =
> ruleBasedCollator.getCollationElementIterator(testString);
> int primaryOrder =
> CollationElementIterator.primaryOrder(collationElementIterator.next());
> :
> }
>
> Does it mean something?
> It was added under https://bugs.openjdk.java.net/browse/JDK-6486695
>
>
> Andrey Turbanov
>
More information about the core-libs-dev
mailing list