Skip to content

Commit

Permalink
Fix generics warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
akurtakov committed May 27, 2024
1 parent a933dd4 commit 49c946c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static void unarchive(URL archiveURL, File baseDir) throws IOException {
if (archiveURL == null || baseDir == null) {
return;
}
ArchiveInputStream archive = null;
ArchiveInputStream<?> archive = null;
try (InputStream input = archiveURL.openStream()) {
if (archiveURL.getFile().endsWith(".tar.gz")) { //$NON-NLS-1$
InputStream gz = new GzipCompressorInputStream(input);
Expand Down Expand Up @@ -66,7 +66,7 @@ public static void unarchive(URL archiveURL, File baseDir) throws IOException {
* @param destination
* destination folder
*/
private static void extractArchive(ArchiveInputStream in, File destination) throws IOException {
private static void extractArchive(ArchiveInputStream<?> in, File destination) throws IOException {
ArchiveEntry entry = null;
while ((entry = in.getNextEntry()) != null) {
if (!in.canReadEntryData(entry)) {
Expand Down

0 comments on commit 49c946c

Please sign in to comment.