diff options
Diffstat (limited to 'poi-ooxml/src/test/java/org/apache/poi/xwpf/XWPFTestDataSamples.java')
-rw-r--r-- | poi-ooxml/src/test/java/org/apache/poi/xwpf/XWPFTestDataSamples.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xwpf/XWPFTestDataSamples.java b/poi-ooxml/src/test/java/org/apache/poi/xwpf/XWPFTestDataSamples.java index e38b5b1e2d..510765d318 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xwpf/XWPFTestDataSamples.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xwpf/XWPFTestDataSamples.java @@ -32,7 +32,7 @@ public class XWPFTestDataSamples { } public static XWPFDocument writeOutAndReadBack(XWPFDocument doc) throws IOException { - UnsynchronizedByteArrayOutputStream baos = new UnsynchronizedByteArrayOutputStream(4096); + UnsynchronizedByteArrayOutputStream baos = UnsynchronizedByteArrayOutputStream.builder().setBufferSize(4096).get(); doc.write(baos); return new XWPFDocument(baos.toInputStream()); } |