]> source.dussan.org Git - poi.git/commitdiff
deprecation warning
authorPJ Fanning <fanningpj@apache.org>
Wed, 6 Mar 2024 11:57:53 +0000 (11:57 +0000)
committerPJ Fanning <fanningpj@apache.org>
Wed, 6 Mar 2024 11:57:53 +0000 (11:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916147 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestPPTX2PNG.java

index fedf7a485444576a195269421a6068aae36d7aad..f9656a881cedc1da0ad5c1e4e574021b807959d9 100644 (file)
@@ -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<SevenZArchiveEntry>)sevenZFile.getEntries()).stream().
                 filter(f -> !f.isDirectory()).