diff options
| author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2008-03-14 00:45:23 +0000 |
|---|---|---|
| committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2008-03-14 00:45:23 +0000 |
| commit | 249b8627806a35022eac58f866a4e0c4eb2dd6b5 (patch) | |
| tree | 11063c150e1fa11b8534076e521cdd7dfb3f89ec /java/lang | |
| parent | 1e990116523f094571632b9b1c2676b57e8c2d4f (diff) | |
| download | classpath-249b8627806a35022eac58f866a4e0c4eb2dd6b5.tar.gz | |
2008-03-14 Andrew John Hughes <gnu_andrew@member.fsf.org>
PR classpath/34840
* java/lang/AbstractStringBuffer.java:
(append(CharSequence,int,int)): Just set
sequence to "null" don't append it.
Diffstat (limited to 'java/lang')
| -rw-r--r-- | java/lang/AbstractStringBuffer.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/lang/AbstractStringBuffer.java b/java/lang/AbstractStringBuffer.java index b4071d237..dc3a8c9ec 100644 --- a/java/lang/AbstractStringBuffer.java +++ b/java/lang/AbstractStringBuffer.java @@ -405,8 +405,8 @@ abstract class AbstractStringBuffer /** * Append some characters from the <code>CharSequence</code> to this - * buffer. If the argument is null, the four characters "null" are - * appended. + * buffer. If the argument is null, the <code>seq</code> is assumed + * to be equal to the string <code>"null"</code>. * * @param seq the <code>CharSequence</code> providing the characters * @param start the starting index @@ -417,7 +417,7 @@ abstract class AbstractStringBuffer public AbstractStringBuffer append(CharSequence seq, int start, int end) { if (seq == null) - return append("null"); + seq = "null"; if (end - start > 0) { ensureCapacity_unsynchronized(count + end - start); |
