Remove unnecessary throw clause
Rmove unnecessary throw IOException clause from the constructor of InputStreamMTSSource
This commit is contained in:
parent
b91888f2ae
commit
51d48bbe87
|
@ -159,8 +159,6 @@ public class MergedHlsDownload extends AbstractHlsDownload {
|
||||||
}
|
}
|
||||||
} catch (ExecutionException e) {
|
} catch (ExecutionException e) {
|
||||||
LOG.error("Error while executing download", e);
|
LOG.error("Error while executing download", e);
|
||||||
} catch (IOException e) {
|
|
||||||
LOG.error("Error while saving stream to file", e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -13,7 +13,7 @@ public class InputStreamMTSSource extends AbstractMTSSource {
|
||||||
|
|
||||||
private InputStream inputStream;
|
private InputStream inputStream;
|
||||||
|
|
||||||
private InputStreamMTSSource(InputStream inputStream) throws IOException {
|
private InputStreamMTSSource(InputStream inputStream) {
|
||||||
this.inputStream = inputStream;
|
this.inputStream = inputStream;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ public class InputStreamMTSSource extends AbstractMTSSource {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public InputStreamMTSSource build() throws IOException {
|
public InputStreamMTSSource build() {
|
||||||
Preconditions.checkNotNull(inputStream, "InputStream cannot be null");
|
Preconditions.checkNotNull(inputStream, "InputStream cannot be null");
|
||||||
return new InputStreamMTSSource(inputStream);
|
return new InputStreamMTSSource(inputStream);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue