[jdk19] RFR: 8289252: Recommend Locale.of() method instead of the constructor [v2]
Naoto Sato
naoto at openjdk.org
Tue Jun 28 20:17:22 UTC 2022
On Tue, 28 Jun 2022 19:45:30 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
>>
>> added `lang` attribute to the snippet
>
> src/java.base/share/classes/java/util/Locale.java line 2608:
>
>> 2606: * <p>The following example shows how to obtain a {@code Locale} object
>> 2607: * using a {@code Builder}.
>> 2608: * {@snippet :
>
> Style-wise, adding the language of the snippet would be a plus:
>
> `@snippet lang=java :`
Good point. Added.
-------------
PR: https://git.openjdk.org/jdk19/pull/85
More information about the core-libs-dev
mailing list