While working on [JDK-8394143](https://bugs.openjdk.org/browse/JDK-8394143), noticed the following internal method's documentation was completely outdated. PR also updates string concatenation within a loop to use a string builder.
--------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - init Changes: https://git.openjdk.org/jdk/pull/33592/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33592&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8395750 Stats: 19 lines in 1 file changed: 0 ins; 7 del; 12 mod Patch: https://git.openjdk.org/jdk/pull/33592.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/33592/head:pull/33592 PR: https://git.openjdk.org/jdk/pull/33592
