On Thu, 25 Jun 2026 17:23:05 GMT, April Ivy <[email protected]> wrote:

>> As noted in https://bugs.openjdk.org/browse/JDK-8365887, the comment in 
>> `String::decode` still referred to the old defensive copy / security manager 
>> optimization even though that path has been removed.
>> 
>> This updates the comment to describe the current shape of the method: a 
>> short-lived `CharsetDecoder` is created for this decode path, while the 
>> `ArrayDecoder` fast paths decode directly from arrays where possible.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> April Ivy has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Update src/java.base/share/classes/java/lang/String.java
>   
>   Co-authored-by: Chen Liang <[email protected]>

Thanks for the cleanup.

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

Marked as reviewed by liach (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/31661#pullrequestreview-4573438051

Reply via email to