This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [RFA/JDWP] VMVirtualMachine StringBuffer cleanup
Keith Seitz writes:
> Andrew Haley wrote:
>
> > > Use java.lang.StringBuilder instead of gnu.gcj.runtime.StringBuffer.
> > > Patch approved with that change.
> >
> > Forget that. Use gnu.gcj.runtime.StringBuffer if you wish.
>
> Is there a preference? Since this is another case of using one of these
> things to build a String once without ever modifying it. Is
> g.g.r.StringBuffer the preferred way to do this, or am I confusing it
> with something else?
gnu.gcj.runtime.StringBuffer is more efficient, but
java.lang.StringBuilder is standard. My preference is for standard
where possible, but sometimes efficiency wins. My complaint was
therefore inappropriate.
Andrew.