mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 04:09:04 +00:00
Construct StringBuilder in StreamUtils with appropriate initial size
Closes gh-25789
This commit is contained in:
@@ -83,7 +83,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;
|
||||
|
||||
Reference in New Issue
Block a user