From d3e35e740a593027a1105e6509c0aadaa54399b0 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Thu, 8 Jun 2023 08:53:08 +0000 Subject: Remove deprecation warnings reported with newer commons-io git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910300 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/java/org/apache/poi/integration/TestXLSX2CSV.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'poi-examples/src/test') diff --git a/poi-examples/src/test/java/org/apache/poi/integration/TestXLSX2CSV.java b/poi-examples/src/test/java/org/apache/poi/integration/TestXLSX2CSV.java index a9bed39008..b172b38295 100644 --- a/poi-examples/src/test/java/org/apache/poi/integration/TestXLSX2CSV.java +++ b/poi-examples/src/test/java/org/apache/poi/integration/TestXLSX2CSV.java @@ -35,7 +35,7 @@ import org.junit.jupiter.api.Test; public class TestXLSX2CSV { private PrintStream err; - private final UnsynchronizedByteArrayOutputStream errorBytes = new UnsynchronizedByteArrayOutputStream(); + private final UnsynchronizedByteArrayOutputStream errorBytes = UnsynchronizedByteArrayOutputStream.builder().get(); @BeforeEach public void setUp() throws UnsupportedEncodingException { @@ -77,7 +77,7 @@ public class TestXLSX2CSV { @Test public void testSampleFile() throws Exception { - final UnsynchronizedByteArrayOutputStream outputBytes = new UnsynchronizedByteArrayOutputStream(); + final UnsynchronizedByteArrayOutputStream outputBytes = UnsynchronizedByteArrayOutputStream.builder().get(); PrintStream out = new PrintStream(outputBytes, true, StandardCharsets.UTF_8.name()); // The package open is instantaneous, as it should be. @@ -96,7 +96,7 @@ public class TestXLSX2CSV { @Test public void testMinColumns() throws Exception { - final UnsynchronizedByteArrayOutputStream outputBytes = new UnsynchronizedByteArrayOutputStream(); + final UnsynchronizedByteArrayOutputStream outputBytes = UnsynchronizedByteArrayOutputStream.builder().get(); PrintStream out = new PrintStream(outputBytes, true, StandardCharsets.UTF_8.name()); // The package open is instantaneous, as it should be. -- cgit v1.2.3