From 77a4e4aa50f80c684d358bab184aa30e264cd892 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Thu, 6 Oct 2022 13:38:32 +0200 Subject: [PATCH] suppress unnecessary unchecked cast warning --- .../sparrow/terminal/TerminalInteractionServices.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/terminal/TerminalInteractionServices.java b/src/main/java/com/sparrowwallet/sparrow/terminal/TerminalInteractionServices.java index 0266c883..2621ad37 100644 --- a/src/main/java/com/sparrowwallet/sparrow/terminal/TerminalInteractionServices.java +++ b/src/main/java/com/sparrowwallet/sparrow/terminal/TerminalInteractionServices.java @@ -20,6 +20,7 @@ public class TerminalInteractionServices implements InteractionServices { private final Object passphraseShowing = new Object(); @Override + @SuppressWarnings("unchecked") public Optional showAlert(String title, String content, Alert.AlertType alertType, Node graphic, ButtonType... buttons) { if(Platform.isFxApplicationThread()) { SparrowTerminal.get().getGui().getGUIThread().invokeLater(() -> { @@ -88,6 +89,7 @@ public class TerminalInteractionServices implements InteractionServices { } @Override + @SuppressWarnings("unchecked") public Optional requestPassphrase(String walletName, Keystore keystore) { if(Platform.isFxApplicationThread()) { SparrowTerminal.get().getGui().getGUIThread().invokeLater(() -> {