more specific throws statement

This commit is contained in:
Sebastian Stenzel
2019-08-06 17:02:06 +02:00
parent 1d94069144
commit 8d08d81f45

View File

@@ -31,7 +31,7 @@ public class UpdateCheckerTask extends Task<String> {
}
@Override
protected String call() throws Exception {
protected String call() throws IOException, InterruptedException {
HttpResponse<InputStream> response = httpClient.send(checkForUpdatesRequest, HttpResponse.BodyHandlers.ofInputStream());
if (response.statusCode() == 200) {
return processBody(response);