I noticed a lot of StringBuffer use in the codebase. I think that in Java 5, all string
concatenations are automatically changed at runtime to StringBuilder [which is faster than
StringBuffer]. Unless we are worried about thread concurrency in a given class, I
don't think we should be using StringBuffer explicitly.
See:
http://java.sun.com/javase/6/docs/api/java/lang/StringBuilder.html
http://peterbacklund.blogspot.com/2007/02/stringbuilder-vs-stringbuffer-a...
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223385#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...