summaryrefslogtreecommitdiff
path: root/gnu/java/lang/CPStringBuilder.java
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/java/lang/CPStringBuilder.java')
-rw-r--r--gnu/java/lang/CPStringBuilder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/java/lang/CPStringBuilder.java b/gnu/java/lang/CPStringBuilder.java
index c2ca848f9..688f36dbc 100644
--- a/gnu/java/lang/CPStringBuilder.java
+++ b/gnu/java/lang/CPStringBuilder.java
@@ -1138,8 +1138,8 @@ public final class CPStringBuilder
/**
* Convert this <code>CPStringBuilder</code> to a <code>String</code>. The
* String is composed of the characters currently in this StringBuilder. Note
- * that the result is not a copy, so future modifications to this buffer
- * do affect the String.
+ * that the result is not a copy, so we flag this here and make sure to
+ * allocate a new array on the next write attempt (see {@link #ensureCapacity(int)}).
*
* @return the characters in this StringBuilder
*/