From bba5d11bdc482e62db0b0ffd388dfff5b9ba750f Mon Sep 17 00:00:00 2001 From: Jan-Peter Klein Date: Mon, 18 Nov 2024 18:07:36 +0100 Subject: [PATCH] small fixes --- src/main/java/org/cryptomator/ui/controls/CustomDialog.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/cryptomator/ui/controls/CustomDialog.java b/src/main/java/org/cryptomator/ui/controls/CustomDialog.java index 7a159fde5..8ddccb883 100644 --- a/src/main/java/org/cryptomator/ui/controls/CustomDialog.java +++ b/src/main/java/org/cryptomator/ui/controls/CustomDialog.java @@ -5,7 +5,6 @@ import org.cryptomator.ui.common.FxmlLoaderFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import javax.inject.Inject; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; @@ -59,7 +58,8 @@ public class CustomDialog { private String resolveText(String key, String[] args) { if (key == null || key.isEmpty() || !resourceBundle.containsKey(key)) { - throw new IllegalArgumentException(String.format("Invalid key: '%s'. Key not found in ResourceBundle.", key)); } + throw new IllegalArgumentException(String.format("Invalid key: '%s'. Key not found in ResourceBundle.", key)); + } String text = resourceBundle.getString(key); try { return args != null && args.length > 0 ? String.format(text, (Object[]) args) : text;