RFR: 8300586: Refactor code examples to use @snippet in java.text.Collator
Justin Lu
jlu at openjdk.org
Wed Jan 18 20:47:48 UTC 2023
On Wed, 18 Jan 2023 20:19:03 GMT, Iris Clark <iris at openjdk.org> wrote:
>> This PR implements _JEP 413: Code Snippets in Java API Documentation_ for [java.text.Collator](https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/text/Collator.html).
>>
>> Code examples using <pre> ... </pre> blocks are replaced with the @ snippet syntax where applicable.
>>
>> Additionally, the code examples have been slightly tweaked to increase readability.
>
> src/java.base/share/classes/java/text/Collator.java line 83:
>
>> 81: * System.out.println("abc is greater than or equal to ABC");
>> 82: * }
>> 83: * }
>
> I don't think you need a second '}' here.
The first `}` is for closing the else statement and the second `}` is for closing the `{snippet`
-------------
PR: https://git.openjdk.org/jdk/pull/12080
More information about the core-libs-dev
mailing list