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);