> 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]> ------------- Changes: - all: https://git.openjdk.org/jdk/pull/31661/files - new: https://git.openjdk.org/jdk/pull/31661/files/7c64b0d9..5fbcace8 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=31661&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=31661&range=00-01 Stats: 3 lines in 1 file changed: 0 ins; 3 del; 0 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
