Avoid usage of StringBuffer where possible
See gh-32519
This commit is contained in:
committed by
Stephane Nicoll
parent
0bfa9cd704
commit
f0b4a65546
@@ -88,7 +88,7 @@ public class DefaultLaunchScript implements LaunchScript {
|
||||
}
|
||||
|
||||
private String expandPlaceholders(String content, Map<?, ?> properties) throws IOException {
|
||||
StringBuffer expanded = new StringBuffer();
|
||||
StringBuilder expanded = new StringBuilder();
|
||||
Matcher matcher = PLACEHOLDER_PATTERN.matcher(content);
|
||||
while (matcher.find()) {
|
||||
String name = matcher.group(1);
|
||||
|
||||
Reference in New Issue
Block a user