Construct StringBuilder in StreamUtils with appropriate initial size

Closes gh-25789
This commit is contained in:
Juergen Hoeller 2020-10-07 15:08:39 +02:00
parent eb11c6fa23
commit ec9de943ee
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ public abstract class StreamUtils {
return "";
}
StringBuilder out = new StringBuilder();
StringBuilder out = new StringBuilder(BUFFER_SIZE);
InputStreamReader reader = new InputStreamReader(in, charset);
char[] buffer = new char[BUFFER_SIZE];
int charsRead;