Strange colon in CollationElementIterator javadoc

Andrey Turbanov turbanoff at gmail.com
Wed Oct 6 19:07:43 UTC 2021


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