Revised ResizableByteArrayOutputStream as an actual subclass of ByteArrayOutputStream, and consistently applied appropriate ByteArrayOutputStream initial capacities across the codebase
Issue: SPR-11594
This commit is contained in:
@@ -104,7 +104,7 @@ public class MarshallingView extends AbstractView {
|
||||
if (toBeMarshalled == null) {
|
||||
throw new IllegalStateException("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