[jbpm-dev] [Design of JBoss jBPM] - String Buffer User in jBPM 4
bradsdavis
do-not-reply at jboss.com
Fri Apr 3 14:49:47 EDT 2009
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-and-java.html
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223385#4223385
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223385
More information about the jbpm-dev
mailing list