<i18n dev> RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v4]
Justin Lu
duke at openjdk.org
Mon Oct 3 21:37:08 UTC 2022
On Mon, 3 Oct 2022 20:42:55 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:
>> Justin Lu has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - Remove comment typo
>> - Remove test wrapper
>
> src/java.base/share/classes/java/text/DigitList.java line 796:
>
>> 794: temp.append("x10^");
>> 795: temp.append(decimalAt);
>> 796: return temp.toString();
>
> This could use chained method calls and avoid the local variable completely.
Thanks for pointing that out, made the switch there and in the getDouble() method as well.
-------------
PR: https://git.openjdk.org/jdk/pull/10475
More information about the i18n-dev
mailing list