8381772: Remove mention of "mutable strings" in java.lang.String Javadocs

Reviewed-by: alanb, liach
This commit is contained in:
Eirik Bjørsnøs 2026-04-08 19:06:40 +00:00
parent 13633c0825
commit 67a71249a1

View File

@ -70,9 +70,9 @@ import sun.nio.cs.UTF_8;
* string literals in Java programs, such as {@code "abc"}, are
* implemented as instances of this class.
* <p>
* Strings are constant; their values cannot be changed after they
* are created. String buffers support mutable strings.
* Because String objects are immutable they can be shared. For example:
* Strings are immutable; their values cannot be changed after they
* are created. Because String objects are immutable they can be shared.
* For example:
* <blockquote><pre>
* String str = "abc";
* </pre></blockquote><p>