From: PJ Fanning Date: Wed, 6 Mar 2024 11:57:53 +0000 (+0000) Subject: deprecation warning X-Git-Tag: REL_5_3_0~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=45b2ecb20a995fee78258dbf6a19864f8ca14aa9;p=poi.git deprecation warning git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916147 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestPPTX2PNG.java b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestPPTX2PNG.java index fedf7a4854..f9656a881c 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestPPTX2PNG.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestPPTX2PNG.java @@ -101,7 +101,7 @@ class TestPPTX2PNG { result = zipFile.stream(). map(f -> Arguments.of(new File(f.getName()).getName(), f, new ZipFile[]{zipFile})); } else if (basedir != null && basedir.getName().endsWith(".7z")) { - SevenZFile sevenZFile = new SevenZFile(basedir); + SevenZFile sevenZFile = SevenZFile.builder().setFile(basedir).get(); archive = sevenZFile; result = ((ArrayList)sevenZFile.getEntries()).stream(). filter(f -> !f.isDirectory()).