RFR: 8300586: Refactor code examples to use @snippet in java.text.Collator

Iris Clark iris at openjdk.org
Wed Jan 18 21:09:29 UTC 2023


On Wed, 18 Jan 2023 20:43:37 GMT, Justin Lu <jlu at openjdk.org> wrote:

>> 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`

I see that now!  I didn't look up far enough.  Thanks!

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

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


More information about the core-libs-dev mailing list