StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time).So I went ahead and replaced the
StringBuffers/StringBuilders can grow considerably, and so may become a source of memory leaks if held within objects with long lifetimes.
StringBuilder
with a StringWriter
. It even has the same append
method signature for strings :D
No comments :
Post a Comment