RFR: 8251989: Hex formatting and parsing utility [v6]

Roger Riggs rriggs at openjdk.java.net
Tue Oct 20 14:35:26 UTC 2020


On Tue, 20 Oct 2020 09:37:23 GMT, Chris Hegarty <chegar at openjdk.org> wrote:

>> Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Correct length of StringBuilder in formatHex;
>>   Correct bug in formatHex(char[], 2, 3) and add test for subranges of char[]
>
> src/java.base/share/classes/java/util/HexFormat.java line 52:
> 
>> 50:  * {@link #toHexDigits(long)}, etc.
>> 51:  * For conversions producing uppercase hexadecimal strings use {@link #withUpperCase()}.
>> 52:  *
> 
> A previous iteration had class-level text describing the range of valid hexadecimal characters. It seems to have gotten
> dropped.

The details were moved to the `toHexDigits` and `fromHexDigits` methods.
I can add a summary.

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

PR: https://git.openjdk.java.net/jdk/pull/482


More information about the core-libs-dev mailing list