8251989: Unified Hex formatting and parsing utility
Alan Bateman
Alan.Bateman at oracle.com
Mon Sep 28 18:36:46 UTC 2020
On 28/09/2020 18:48, Brian Goetz wrote:
> Minor nit:
>
> Appendable foo(Appendable bar)
>
> should be
>
> <A extend Appendable> A foo(A bar)
>
> That way, if you say
>
> hex.formatHex(aStringBuilder, bytes)
> .foo()
>
> where foo() is a method on StringBuilder but not on Appendable, it
> will still work as expected.
One other thing is the static method to create a HexFormat with a
delimiter. Is it of(String) or ofDelimiter(String)? The class
description says "of(delimiter)" and the examples use that form. The
list of uses says its "ofDelimiter".
-Alan
More information about the core-libs-dev
mailing list