Add more documentation for when InterruptedException is thrown in UpdateChecker
@@ -145,8 +145,9 @@ public class UpdateChecker {
if (updateMessageFuture.isDone()) {
try {
return updateMessageFuture.get();
- } catch (InterruptedException | ExecutionException ignored) {
- // Fail silently;
+ } catch (InterruptedException | ExecutionException ex) {
+ // No need to restore the interrupted status. The intention here is to silently consume any
+ // kind of error
}
}
updateMessageFuture.cancel(true);
