diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2008-05-11 22:57:13 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2008-05-11 22:57:13 +0000 |
commit | b81a06c356c75e29d45a61d12fd1d0e48f20c8eb (patch) | |
tree | 8be2d179a19f711255d01e2a59b1f55ac1ea2f00 /gnu | |
parent | 70742595d9d38b01275887b893cc3e8c98b35772 (diff) | |
download | classpath-b81a06c356c75e29d45a61d12fd1d0e48f20c8eb.tar.gz |
2008-05-11 Andrew John Hughes <gnu_andrew@member.fsf.org>
* gnu/java/lang/CPStringBuilder.java:
(toString()): Fix comments to reflect copying changes.
* vm/reference/gnu/java/lang/VMCPStringBuilder.java:
(toString()): Likewise.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/java/lang/CPStringBuilder.java | 4 |
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 */ |