don't use synchronized collections in a local-only context

This commit is contained in:
Dave Brosius committed 2011-02-05 18:51:13 -05:00
1 parent 9e32311e2f
commit 2cfd939358
3 files changed
+45 -48

No files matched your search

+1 -1
View File
@@ -193,7 +193,7 @@ public class MarkupText extends AbstractMarkupText {
* Replaces the group tokens like "$0", "$1", and etc with their actual matches.
*/
public String replace(String s) {
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder(s.length() + 10);
for( int i=0; i<s.length(); i++) {
char ch = s.charAt(i);