From 42652953b5273929da4c828fc16d9b764da4d255 Mon Sep 17 00:00:00 2001 From: asvitkine Date: Wed, 20 Sep 2023 18:22:31 -0400 Subject: [PATCH] Make args more concise. --- .../engine/framework/ui/background/BackgroundTaskRunner.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/game-app/game-core/src/main/java/games/strategy/engine/framework/ui/background/BackgroundTaskRunner.java b/game-app/game-core/src/main/java/games/strategy/engine/framework/ui/background/BackgroundTaskRunner.java index b25b8facdd9..7165f6d13b5 100644 --- a/game-app/game-core/src/main/java/games/strategy/engine/framework/ui/background/BackgroundTaskRunner.java +++ b/game-app/game-core/src/main/java/games/strategy/engine/framework/ui/background/BackgroundTaskRunner.java @@ -79,9 +79,7 @@ public static T runInBackgroundAndReturn( } public static T runInBackgroundAndReturn( - Consumer runOnEdtBeforeDialogClose, - final String message, - final Supplier backgroundAction) + Consumer runOnEdtBeforeDialogClose, String message, Supplier backgroundAction) throws InterruptedException { return runInBackgroundAndReturn( message, backgroundAction::get, runOnEdtBeforeDialogClose, RuntimeException.class);