fix: checkstyle.

This commit is contained in:
huanghongxun
2021-10-20 01:14:56 +08:00
parent a74b971b98
commit 7846e9e196
2 changed files with 7 additions and 7 deletions

View File

@@ -542,12 +542,12 @@ public final class LauncherHelper {
.thenAcceptAsync(downloadedJava -> {
future.complete(downloadedJava);
})
.exceptionally(throwable -> {
LOG.log(Level.WARNING, "Failed to download java", throwable);
Controllers.dialog(DownloadProviders.localizeErrorMessage(throwable), i18n("download.failed"));
future.completeExceptionally(new CancellationException());
return null;
});
.exceptionally(throwable -> {
LOG.log(Level.WARNING, "Failed to download java", throwable);
Controllers.dialog(DownloadProviders.localizeErrorMessage(throwable), i18n("download.failed"));
future.completeExceptionally(new CancellationException());
return null;
});
}, () -> {
future.completeExceptionally(new CancellationException());
}).build());