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:
parent
6ad9bbd367
commit
7f6dfb6dfe
@ -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 {
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user