mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Merge pull request #48125 from K-jun98
* gh-48125: Optimize StringBuilder initialization in CorrelationIdFormatter Closes gh-48125
This commit is contained in:
+1
-1
@@ -85,7 +85,7 @@ public final class CorrelationIdFormatter {
|
||||
* @return a formatted correlation id
|
||||
*/
|
||||
public String format(UnaryOperator<String> resolver) {
|
||||
StringBuilder result = new StringBuilder();
|
||||
StringBuilder result = new StringBuilder(this.blank.length());
|
||||
formatTo(resolver, result);
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user