RFR: 8366224: Introduce DecimalDigits.appendPair for efficient two-digit formatting and refactor DateTimeHelper [v3]

Shaojin Wen swen at openjdk.org
Thu Aug 28 05:29:42 UTC 2025


On Wed, 27 Aug 2025 11:33:54 GMT, Mikhail Yankelevich <myankelevich at openjdk.org> wrote:

>> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Add DecimalDigitsTest to verify appendPair method with LATIN1 and UTF16 encoding
>
> src/java.base/share/classes/java/lang/AbstractStringBuilder.java line 928:
> 
>> 926:             DecimalDigits.uncheckedPutPairLatin1(value, count, i);
>> 927:         } else {
>> 928:             DecimalDigits.uncheckedPutPairUTF16(value, count, i);
> 
> I believe this is not covered by current tests, so could you please add the test if it's easy to reach?

I have added DecimalDigitsTest

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26911#discussion_r2306219078


More information about the security-dev mailing list