Consistently applied appropriate ByteArrayOutputStream initial capacities across the codebase
Issue: SPR-11594
(cherry picked from commit dd7f54c)
This commit is contained in:
@@ -105,7 +105,7 @@ public class MarshallingView extends AbstractView {
|
||||
if (toBeMarshalled == null) {
|
||||
throw new ServletException("Unable to locate object to be marshalled in model: " + model);
|
||||
}
|
||||
ByteArrayOutputStream bos = new ByteArrayOutputStream(2048);
|
||||
ByteArrayOutputStream bos = new ByteArrayOutputStream(1024);
|
||||
this.marshaller.marshal(toBeMarshalled, new StreamResult(bos));
|
||||
|
||||
setResponseContentType(request, response);
|
||||
|
||||
Reference in New Issue
Block a user