Skip to content

Commit

Permalink
fix: added paramterized type for ArchiveInputStream (#2869)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathanlemon authored Apr 9, 2024
1 parent 764a4e1 commit aad1565
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private static void extractArchiveContents(InputStream is, File targetDirectory)
FileUtil.cleanDirectory(targetDirectory);
}
FileUtil.createDirectory(targetDirectory);
try (ArchiveInputStream ais = new ArchiveStreamFactory().createArchiveInputStream(is)) {
try (ArchiveInputStream<ArchiveEntry> ais = new ArchiveStreamFactory().createArchiveInputStream(is)) {
ArchiveEntry entry;
while ((entry = ais.getNextEntry()) != null) {
final File extractTo = new File(targetDirectory, fileName(entry.getName()));
Expand Down

0 comments on commit aad1565

Please sign in to comment.