mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 20:36:44 +00:00
suppress unnecessary unchecked cast warning
This commit is contained in:
parent
19dedfa070
commit
77a4e4aa50
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@ public class TerminalInteractionServices implements InteractionServices {
|
|||
private final Object passphraseShowing = new Object();
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<ButtonType> 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<String> requestPassphrase(String walletName, Keystore keystore) {
|
||||
if(Platform.isFxApplicationThread()) {
|
||||
SparrowTerminal.get().getGui().getGUIThread().invokeLater(() -> {
|
||||
|
|
Loading…
Reference in a new issue