Replace StringBuffer with StringBuilder where possible
This commit is contained in:
committed by
Juergen Hoeller
parent
33195da64f
commit
a2bb59f1b8
@@ -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('[');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user