mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 02:26:18 +00:00
don't use synchronized collections in a local-only context
This commit is contained in:
1 parent
9e32311e2f
commit
2cfd939358
3 files changed
+45
-48
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user