<i18n dev> RFR: 8252552: DecimalFormat javadoc contains HTML tags in example code

Naoto Sato naoto.sato at oracle.com
Mon Aug 31 21:12:56 UTC 2020


Thanks, Joe!

On 8/31/20 12:55 PM, Joe Wang wrote:
> +1
> 
> Or, maybe <strong> is not needed for code comments

Yes. I just kept it as is, as it seems the comment summarizes what the 
examples do.

Naoto

> 
> -Joe
> 
> On 8/31/20 10:14 AM, Lance Andersen wrote:
>> Hi Naoto,
>>
>> Looks OK to me.
>>
>> Best
>> Lance
>>
>>> On Aug 31, 2020, at 12:22 PM, Naoto Sato <naoto.sato at oracle.com> wrote:
>>>
>>> Hello,
>>>
>>> Please review this simple javadoc fix to:
>>>
>>> https://bugs.openjdk.java.net/browse/JDK-8252552
>>>
>>> The proposed diff is inserted here:
>>>
>>> ---
>>> --- old/src/java.base/share/classes/java/text/DecimalFormat.java 
>>> 2020-08-31 09:07:22.000000000 -0700
>>> +++ new/src/java.base/share/classes/java/text/DecimalFormat.java 
>>> 2020-08-31 09:07:22.000000000 -0700
>>> @@ -338,9 +338,9 @@
>>>   *
>>>   * <h3>Example</h3>
>>>   *
>>> - * <blockquote><pre>{@code
>>> - * <strong>// Print out a number using the localized number, 
>>> integer, currency,
>>> - * // and percent format for each locale</strong>
>>> + * <blockquote><pre><strong>{@code
>>> + * // Print out a number using the localized number, integer, currency,
>>> + * // and percent format for each locale}</strong>{@code
>>>   * Locale[] locales = NumberFormat.getAvailableLocales();
>>>   * double myNumber = -1234.56;
>>>   * NumberFormat form;
>>> ---
>>>
>>> It is simply to take those <strong> HTML tags out of {@code} snippet.
>>>
>>> Naoto
>>
>> Best
>> Lance
>> ------------------
>>
>>
>>
>>
>> Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
>> Oracle Java Engineering
>> 1 Network Drive
>> Burlington, MA 01803
>> Lance.Andersen at oracle.com
>>
>>
>>
>>
> 


More information about the i18n-dev mailing list