From 5593e5b8b62eea91731b0d9869b6006da619c88b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A?= =?UTF-8?q?=D1=80=20=D0=9A=D1=83=D1=80=D1=82=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Sun, 25 Feb 2024 21:03:30 +0200 Subject: [PATCH] Stop using deprecated commons-compress APIs --- .../java/org/eclipse/tycho/plugins/tar/TarGzArchiverTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tycho-p2-director-plugin/src/test/java/org/eclipse/tycho/plugins/tar/TarGzArchiverTest.java b/tycho-p2-director-plugin/src/test/java/org/eclipse/tycho/plugins/tar/TarGzArchiverTest.java index fcce1e4079..e3aec64c31 100644 --- a/tycho-p2-director-plugin/src/test/java/org/eclipse/tycho/plugins/tar/TarGzArchiverTest.java +++ b/tycho-p2-director-plugin/src/test/java/org/eclipse/tycho/plugins/tar/TarGzArchiverTest.java @@ -208,7 +208,7 @@ private Map getTarEntries() throws IOException, FileNot try (TarArchiveInputStream tarStream = new TarArchiveInputStream( new GzipCompressorInputStream(new FileInputStream(tarGzArchive)))) { TarArchiveEntry tarEntry = null; - while ((tarEntry = tarStream.getNextTarEntry()) != null) { + while ((tarEntry = tarStream.getNextEntry()) != null) { entries.put(tarEntry.getName(), tarEntry); } } @@ -219,7 +219,7 @@ private byte[] getTarEntry(String name) throws IOException { try (TarArchiveInputStream tarStream = new TarArchiveInputStream( new GzipCompressorInputStream(new FileInputStream(tarGzArchive)))) { TarArchiveEntry tarEntry = null; - while ((tarEntry = tarStream.getNextTarEntry()) != null) { + while ((tarEntry = tarStream.getNextEntry()) != null) { if (name.equals(tarEntry.getName())) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); tarStream.transferTo(baos);