Remove unnecessary throw clause

Rmove unnecessary throw IOException clause from the constructor of
InputStreamMTSSource
This commit is contained in:
0xboobface 2018-09-07 16:50:24 +02:00
parent b91888f2ae
commit 51d48bbe87
2 changed files with 2 additions and 4 deletions

View File

@ -159,8 +159,6 @@ public class MergedHlsDownload extends AbstractHlsDownload {
}
} catch (ExecutionException e) {
LOG.error("Error while executing download", e);
} catch (IOException e) {
LOG.error("Error while saving stream to file", e);
}
}
});

View File

@ -13,7 +13,7 @@ public class InputStreamMTSSource extends AbstractMTSSource {
private InputStream inputStream;
private InputStreamMTSSource(InputStream inputStream) throws IOException {
private InputStreamMTSSource(InputStream inputStream) {
this.inputStream = inputStream;
}
@ -55,7 +55,7 @@ public class InputStreamMTSSource extends AbstractMTSSource {
return this;
}
public InputStreamMTSSource build() throws IOException {
public InputStreamMTSSource build() {
Preconditions.checkNotNull(inputStream, "InputStream cannot be null");
return new InputStreamMTSSource(inputStream);
}