On Tue, 3 Mar 2026 08:44:25 GMT, Liam Miller-Cushon <[email protected]> wrote:

> The idea was to try to set expectations that this may perform better than 
> `getBytes(cs).length` but is not guaranteed to


 * @apiNote This method provides equivalent or better performance than..


This may be read as a strong promise that performance will always be better 
which may be a difficult promise to keep.

Should we consider  saying something like "may offer better performance than" 
instead?

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

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

Reply via email to