[Soot-list] StringBuffer or StringBuilder when performing string concatenation?

Eric Bodden bodden at st.informatik.tu-darmstadt.de
Sun May 2 05:14:41 EDT 2010


> Is this deviation
> purposeful, or .....?

Yes. Many people complained about the use of StringBuilder because it
uses synchronization, which is unnessary if the strings only live on
the stack.

> And Would this difference cause any problems?

Well, this really depends on how you design your analysis.

> The latter appears much neat and simpler, even as to naming convention.
> Well, it does differ in naming convention between processing Java File and
> processing Class File, right?

Yes. This is because your will be using two totally different
frontends in both cases. But normally names really should not matter
to your analysis.

Hope that helps,
Eric

--
Dr. Eric Bodden
Software Technology Group, Technische Universität Darmstadt, Germany
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt


More information about the Soot-list mailing list