mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 13:26: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();
|
private final Object passphraseShowing = new Object();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public Optional<ButtonType> showAlert(String title, String content, Alert.AlertType alertType, Node graphic, ButtonType... buttons) {
|
public Optional<ButtonType> showAlert(String title, String content, Alert.AlertType alertType, Node graphic, ButtonType... buttons) {
|
||||||
if(Platform.isFxApplicationThread()) {
|
if(Platform.isFxApplicationThread()) {
|
||||||
SparrowTerminal.get().getGui().getGUIThread().invokeLater(() -> {
|
SparrowTerminal.get().getGui().getGUIThread().invokeLater(() -> {
|
||||||
|
@ -88,6 +89,7 @@ public class TerminalInteractionServices implements InteractionServices {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public Optional<String> requestPassphrase(String walletName, Keystore keystore) {
|
public Optional<String> requestPassphrase(String walletName, Keystore keystore) {
|
||||||
if(Platform.isFxApplicationThread()) {
|
if(Platform.isFxApplicationThread()) {
|
||||||
SparrowTerminal.get().getGui().getGUIThread().invokeLater(() -> {
|
SparrowTerminal.get().getGui().getGUIThread().invokeLater(() -> {
|
||||||
|
|
Loading…
Reference in a new issue