With
Java 1.4, the Java compiler will use StringBuffer for all
string concats (that use the "+" operator). With Java 5, the java compiler uses StringBuilder. So, a lot of your operations will switch from StringBuffer to StringBuilder automatically (upon recompile).
However, if you use StringBuffer explicitely, the java compiler will not automatically change it for you. The reason is, it doesn't know to what extend you are using it -- if you pass it elsewhere, then use it in a multithreaded format, switching to StringBuilder may break your app. Regardless, I wouldn't worry about it too much. Uncontended lock grabs have been greatly improved since Java 5, so using StringBuffer, single threaded, is probably not noticeable compared to using StringBuilder.
Henry