On Thu, 23 Feb 2023 13:13:43 GMT, Jim Laskey <jlas...@openjdk.org> wrote:

> Add the ability to repeatedly append char and CharSequence data to 
> StringBuilder/StringBuffer.

src/java.base/share/classes/java/lang/String.java line 4461:

> 4459: 
> 4460:     /**
> 4461:      * Used to perform copying after the initial insertion. Copying is 
> optimized

It may be worth reinforceing that bytes are being copied, not characters and is 
used in both IsLatin1 and UTF16 cases with appropriate arguments.

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

PR: https://git.openjdk.org/jdk/pull/12728

Reply via email to