From 45b2ecb20a995fee78258dbf6a19864f8ca14aa9 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 6 Mar 2024 11:57:53 +0000 Subject: [PATCH] deprecation warning git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916147 13f79535-47bb-0310-9956-ffa450edef68 --- .../test/java/org/apache/poi/xslf/usermodel/TestPPTX2PNG.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()). -- 2.39.5