On Tue, 17 Jan 2023 23:14:53 GMT, Justin Lu <j...@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

Reply via email to