RFR: 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets [v2]

Glavo duke at openjdk.org
Sat Jan 28 19:43:27 UTC 2023


On Sat, 28 Jan 2023 19:28:46 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> The parameter will be easier to understand if `true` means that the string created must not share the byte array supplied. For example,
> 
> @param noShare {@code true} if the resulting string MUST NOT share the byte array, {@code false} if the byte array can be exclusively used to construct the string and is not modified or used for any other purpose.
> 
> This flips the boolean argument in the uses below.

I modified it according to your suggestion.

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

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


More information about the core-libs-dev mailing list