remove unused IOException from Downloader.close() method

This makes close() easier to use, and the IOException is not used at all.
This commit is contained in:
Hans-Christoph Steiner 2016-03-30 15:16:58 +02:00
parent 6ad9bbd367
commit 7f6dfb6dfe
2 changed files with 3 additions and 2 deletions

View File

@ -40,7 +40,7 @@ public abstract class Downloader {
protected abstract InputStream getDownloadersInputStream() throws IOException; protected abstract InputStream getDownloadersInputStream() throws IOException;
protected abstract void close() throws IOException; protected abstract void close();
Downloader(URL url, File destFile) Downloader(URL url, File destFile)
throws FileNotFoundException, MalformedURLException { throws FileNotFoundException, MalformedURLException {

View File

@ -24,8 +24,9 @@ public class LocalFileDownloader extends Downloader {
} }
@Override @Override
protected void close() throws IOException { protected void close() {
// Do nothing. // Do nothing.
// TODO this should close the InputStream from getDownloadersInputStream()
} }
@Override @Override