import java.util.Enumeration;
import java.util.Vector;
import java.util.zip.ZipEntry;
-import java.util.zip.ZipException;
import java.util.zip.ZipFile;
import org.eclipse.core.runtime.IProgressMonitor;
}
try {
- ZipFile zipFile = new ZipFile(fFileName);
- return new ZipArchiveFile(zipFile);
- } catch (ZipException e) {
- // ignore
+ return new ZipArchiveFile(new ZipFile(fFileName));
} catch (IOException e) {
// ignore
}
try {
- TarFile tarFile = new TarFile(fFileName);
- return new TarArchiveFile(tarFile);
- } catch (TarException e) {
- // ignore
- } catch (IOException e) {
+ return new TarArchiveFile(new TarFile(fFileName));
+ } catch (TarException | IOException e) {
// ignore
}