Skip to content

Commit 67a7124

Browse files
author
Eirik Bjørsnøs
committed
8381772: Remove mention of "mutable strings" in java.lang.String Javadocs
Reviewed-by: alanb, liach
1 parent 13633c0 commit 67a7124

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/java.base/share/classes/java/lang/String.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@
7070
* string literals in Java programs, such as {@code "abc"}, are
7171
* implemented as instances of this class.
7272
* <p>
73-
* Strings are constant; their values cannot be changed after they
74-
* are created. String buffers support mutable strings.
75-
* Because String objects are immutable they can be shared. For example:
73+
* Strings are immutable; their values cannot be changed after they
74+
* are created. Because String objects are immutable they can be shared.
75+
* For example:
7676
* <blockquote><pre>
7777
* String str = "abc";
7878
* </pre></blockquote><p>

0 commit comments

Comments
 (0)