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 void close() throws IOException;
|
||||
protected abstract void close();
|
||||
|
||||
Downloader(URL url, File destFile)
|
||||
throws FileNotFoundException, MalformedURLException {
|
||||
|
@ -24,8 +24,9 @@ public class LocalFileDownloader extends Downloader {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void close() throws IOException {
|
||||
protected void close() {
|
||||
// Do nothing.
|
||||
// TODO this should close the InputStream from getDownloadersInputStream()
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user