Merge branch '5.3.x'

This commit is contained in:
Brian Clozel
2021-09-17 15:30:16 +02:00
2 changed files with 7 additions and 1 deletions

View File

@@ -1301,7 +1301,7 @@ public abstract class StringUtils {
int totalLength = coll.size() * (prefix.length() + suffix.length()) + (coll.size() - 1) * delim.length();
for (Object element : coll) {
totalLength += element.toString().length();
totalLength += String.valueOf(element).length();
}
StringBuilder sb = new StringBuilder(totalLength);