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). ------------- Commit messages: - 8365887: Outdated comments in String::decode Changes: https://git.openjdk.org/jdk/pull/31661/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31661&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8365887 Stats: 8 lines in 1 file changed: 0 ins; 5 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/31661.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31661/head:pull/31661 PR: https://git.openjdk.org/jdk/pull/31661
