<i18n dev> RFR: 8300356: Refactor code examples to use @snippet in java.text.CollationElementIterator

Naoto Sato naoto at openjdk.org
Tue Jan 17 23:58:21 UTC 2023


On Tue, 17 Jan 2023 23:15:26 GMT, Justin Lu <jlu at openjdk.org> wrote:

>> This PR implements _JEP 413: Code Snippets in Java API Documentation_ for [java.text.CollationElementIterator](https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/text/CollationElementIterator.html).
>> 
>> Code examples using <pre> ... </pre> blocks are replaced with the @ snippet syntax where applicable.
>> 
>> 
>> Additionally, removed a floating colon in the code example
>
> src/java.base/share/classes/java/text/CollationElementIterator.java line 87:
> 
>> 85:  *      CollationElementIterator collationElementIterator = ruleBasedCollator.getCollationElementIterator(testString);
>> 86:  *      int primaryOrder = CollationElementIterator.primaryOrder(collationElementIterator.next());
>> 87:  *          :
> 
> I believe this is a typo, and have removed it

My guess is that this was meant as a vertical ellipsis, so instead of removing it, you can replace it with `⋮`.

-------------

PR: https://git.openjdk.org/jdk/pull/12055


More information about the i18n-dev mailing list