"@Override" annotation should be used on any method overriding (since Java 5) or implementing (since Java 6) another one.

This commit is contained in:
Kirill Vlasov
2015-12-08 10:27:29 +01:00
committed by Andreas Schildbach
parent 313e2c14c1
commit 0ba3f4c2d2
4 changed files with 6 additions and 0 deletions

View File

@@ -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");
}