[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] StringBuilder and Appendable for CVS HEAD
From: |
Michael Koch |
Subject: |
Re: [cp-patches] StringBuilder and Appendable for CVS HEAD |
Date: |
Mon, 13 Dec 2004 17:07:25 +0100 |
User-agent: |
KMail/1.6.2 |
Am Montag, 13. Dezember 2004 16:53 schrieb Andrew John Hughes:
> Attached is a patch to add StringBuilder (a non-threaded derivative
> of StringBuffer) and Appendable, an additional interface it
> implements. Currently, there is a small workaround so that the
> implementation of Appendable will compile. The return type of
> these methods have had to be typed to Appendable rather than
> StringBuilder at present, as only 1.5 implements co-variant return
> types. This can easily be fixed when Classpath compilers implement
> this, and using code only needs an explicit downcast to
> StringBuilder to work with this change.
>
> Anyway, let me know your thoughts ;)
There should at least be FIXME comments where we need to change the
return types later.
Michael
--
Homepage: http://www.worldforge.org/
RE: [cp-patches] StringBuilder and Appendable for CVS HEAD, Jeroen Frijters, 2004/12/15