Commit 0ba3f4c2 authored by Kirill Vlasov's avatar Kirill Vlasov Committed by Andreas Schildbach

"@Override" annotation should be used on any method overriding (since Java 5)...

"@Override" annotation should be used on any method overriding (since Java 5) or implementing (since Java 6) another one.
parent 313e2c14
......@@ -148,9 +148,11 @@ public class TorDiscovery implements PeerDiscovery {
}
});
Futures.addCallback(openCircuit, new FutureCallback<Circuit>() {
@Override
public void onSuccess(Circuit circuit) {
doneSignal.countDown();
}
@Override
public void onFailure(Throwable thrown) {
doneSignal.countDown();
}
......
......@@ -345,6 +345,7 @@ public class KeyChainGroup implements KeyBag {
return importKeys(encryptedKeys);
}
@Override
@Nullable
public RedeemData findRedeemDataFromScriptHash(byte[] scriptHash) {
// Iterate in reverse order, since the active keychain is the one most likely to have the hit
......
......@@ -90,6 +90,7 @@ public class MarriedKeyChain extends DeterministicKeyChain {
return self();
}
@Override
public MarriedKeyChain build() {
checkState(random != null || entropy != null || seed != null || watchingKey!= null, "Must provide either entropy or random or seed or watchingKey");
checkNotNull(followingKeys, "followingKeys must be provided");
......
......@@ -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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment