<i18n dev> RFR: 8300356: Refactor code examples to use @snippet in java.text.CollationElementIterator
Naoto Sato
naoto at openjdk.org
Wed Jan 18 00:01:34 UTC 2023
On Tue, 17 Jan 2023 23:14:53 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 82:
> 80: * String testString = "This is a test";
> 81: * Collator col = Collator.getInstance();
> 82: * if (col instanceof RuleBasedCollator) {
I'd use the pattern matching `instanceof` here
-------------
PR: https://git.openjdk.org/jdk/pull/12055
More information about the i18n-dev
mailing list