On Wed, 22 Apr 2026 06:58:07 GMT, Alan Bateman <[email protected]> wrote:
>> I had considered how it would look like at the call-site: >> >> >> SNIHostName.ofHostName(hostName); // Too verbose/noisy with repetition? >> >> >> and then thought of: >> >> >> SNIHostName.ofString(hostName); >> SNIHostName.ofBytes(hostName); >> >> >> But I will leave the decision on naming to those more experienced in this >> field. > > SNIHostName.of(String) and SNIHostName.ofEncoded(byte[]) are other candidates. My preference is to name them `ofHostName(String)` and `ofEncoded(byte[])`. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/30747#discussion_r3151653685
