mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-03 05:57:21 +00:00
"@Override" annotation should be used on any method overriding (since Java 5) or implementing (since Java 6) another one.
This commit is contained in:
committed by
Andreas Schildbach
parent
313e2c14c1
commit
0ba3f4c2d2
@@ -67,10 +67,12 @@ public class SendRequest {
|
||||
// Bitcoinj is using the ListenableFutures of the Guava library. Have a look here for more information: https://code.google.com/p/guava-libraries/wiki/ListenableFutureExplained
|
||||
ListenableFuture<Coin> balanceFuture = kit.wallet().getBalanceFuture(value, BalanceType.AVAILABLE);
|
||||
FutureCallback<Coin> callback = new FutureCallback<Coin>() {
|
||||
@Override
|
||||
public void onSuccess(Coin balance) {
|
||||
System.out.println("coins arrived and the wallet now has enough balance");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(Throwable t) {
|
||||
System.out.println("something went wrong");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user