RFR: 8372353: API to compute the byte length of a String encoded in a given Charset [v13]

Alan Bateman alanb at openjdk.org
Tue Jan 20 14:43:12 UTC 2026


On Tue, 20 Jan 2026 10:15:12 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:

>> src/java.base/share/classes/java/lang/String.java line 2112:
>> 
>>> 2110:      * sequences with the charset's default replacement byte array.
>>> 2111:      *
>>> 2112:      * <p>The result will be the same value as {@link #getBytes(Charset) getBytes(cs).length}.
>> 
>> The wording is good. As "The result will be the same ..." follows the previous sentence then I think you can drop the paragraph tag so that it goes into the same paragraph.
>
> Thanks, done

Update API docs looks okay to me. I cleaned up the CSR a bit, and added myself as Reviewer.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28454#discussion_r2708647875


More information about the core-libs-dev mailing list