Merge branch '3.1.x' into 3.2.x

See gh-39340
This commit is contained in:
Andy Wilkinson
2024-01-31 17:44:07 +00:00
14 changed files with 37 additions and 37 deletions

View File

@@ -195,7 +195,7 @@ class ApplicationPluginActionIntegrationTests {
List<String> entryNames = new ArrayList<>();
try (TarArchiveInputStream input = new TarArchiveInputStream(new FileInputStream(distribution))) {
TarArchiveEntry entry;
while ((entry = input.getNextEntry()) != null) {
while ((entry = input.getNextTarEntry()) != null) {
entryNames.add(entry.getName());
}
}
@@ -205,7 +205,7 @@ class ApplicationPluginActionIntegrationTests {
private void tarEntries(File distribution, Consumer<TarArchiveEntry> consumer) throws IOException {
try (TarArchiveInputStream input = new TarArchiveInputStream(new FileInputStream(distribution))) {
TarArchiveEntry entry;
while ((entry = input.getNextEntry()) != null) {
while ((entry = input.getNextTarEntry()) != null) {
consumer.accept(entry);
}
}