Replace StringBuffer with StringBuilder where possible

This commit is contained in:
Yanming Zhou
2020-09-03 15:09:30 +08:00
committed by Juergen Hoeller
parent 33195da64f
commit a2bb59f1b8
5 changed files with 7 additions and 7 deletions

View File

@@ -260,7 +260,7 @@ public class ReflectUtils {
while ((index = className.indexOf("[]", index) + 1) > 0) {
dimensions++;
}
StringBuffer brackets = new StringBuffer(className.length() - dimensions);
StringBuilder brackets = new StringBuilder(className.length() - dimensions);
for (int i = 0; i < dimensions; i++) {
brackets.append('[');
}