Avoid usage of StringBuffer where possible
See gh-32519
This commit is contained in:
committed by
Stephane Nicoll
parent
0bfa9cd704
commit
f0b4a65546
@@ -111,7 +111,7 @@ public class AnnotationsPropertySource extends EnumerablePropertySource<Class<?>
|
||||
|
||||
private String toKebabCase(String name) {
|
||||
Matcher matcher = CAMEL_CASE_PATTERN.matcher(name);
|
||||
StringBuffer result = new StringBuffer();
|
||||
StringBuilder result = new StringBuilder();
|
||||
while (matcher.find()) {
|
||||
matcher.appendReplacement(result, matcher.group(1) + '-' + StringUtils.uncapitalize(matcher.group(2)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user