classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] StringBuilder and Appendable for CVS HEAD


From: Andrew John Hughes
Subject: [cp-patches] StringBuilder and Appendable for CVS HEAD
Date: Mon, 13 Dec 2004 15:53:28 +0000
User-agent: Mutt/1.5.6+20040907i

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 ;)

Cheers,
-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

No software patents in Europe -- http://nosoftwarepatents.com

"Value your freedom, or you will lose it, teaches history. 
`Don't bother us with politics' respond those who don't want to learn." 
-- Richard Stallman

"We've all been part of the biggest beta test the world has ever known --
Windows" 
-- Victor Wheatman, Gartner

Attachment: stringbuilder.diff
Description: Patch

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]