Replace StringBuffer by StringBuilder

Issue #45 invalid
Markus KARG created an issue

Since JRE5 there is a drop-in replacement for StringBuffer: StringBuilder. That one has the same interface, but is not synchronized. Hence it works faster. :-)

Comments (8)

  1. Christian Schudt repo owner

    I know. It's only used in Jid class, though, because the matcher class requires it. Didn't find a way around it yet.

  2. Markus KARG reporter

    Drat! I hate Sun for their sluttery. While I'm officially a member of OpenJDK for years, I never actually worked on the code itself. I should take action and begin to contribute some code changes. I mean, StringBuilder exits for more than a decade and they still support solely StringBuffer. This makes me sick! ;-)

    The crazy thing is that StringBuilder.append(StringBuffer) does exist, but not the reverse. I mean, how dumb can a programmer be to add a complete drop-in replacement but to miss adding two simple lines of code in an existing interface?!

  3. Markus KARG reporter

    Apparently this needs an JRE change, which is simply unrealistic to achieve in a timely manner. :-(

  4. Log in to comment