From fb8ac7bc6c66865cc20f35cc2f4464ad87b732d9 Mon Sep 17 00:00:00 2001 From: Sean Gilligan Date: Thu, 21 Feb 2019 18:52:23 -0800 Subject: [PATCH] PeerGroup, TransactionConfidence: Fix JavaDoc links. --- core/src/main/java/org/bitcoinj/core/PeerGroup.java | 4 ++-- .../main/java/org/bitcoinj/core/TransactionConfidence.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/org/bitcoinj/core/PeerGroup.java b/core/src/main/java/org/bitcoinj/core/PeerGroup.java index d36c81f1..8f9088fd 100644 --- a/core/src/main/java/org/bitcoinj/core/PeerGroup.java +++ b/core/src/main/java/org/bitcoinj/core/PeerGroup.java @@ -1281,8 +1281,8 @@ public class PeerGroup implements TransactionBroadcaster { } /** - * Returns the number of currently connected peers. To be informed when this count changes, register a - * {@link PeerConnectionEventListener} and use the onPeerConnected/onPeerDisconnected methods. + * Returns the number of currently connected peers. To be informed when this count changes, use + * {@link PeerConnectedEventListener#onPeerConnected} and {@link PeerDisconnectedEventListener#onPeerDisconnected}. */ public int numConnectedPeers() { return peers.size(); diff --git a/core/src/main/java/org/bitcoinj/core/TransactionConfidence.java b/core/src/main/java/org/bitcoinj/core/TransactionConfidence.java index 00c6fa67..20d93989 100644 --- a/core/src/main/java/org/bitcoinj/core/TransactionConfidence.java +++ b/core/src/main/java/org/bitcoinj/core/TransactionConfidence.java @@ -223,9 +223,9 @@ public class TransactionConfidence { * *

Note that this is NOT called when every block arrives. Instead it is called when the transaction * transitions between confidence states, ie, from not being seen in the chain to being seen (not necessarily in - * the best chain). If you want to know when the transaction gets buried under another block, implement a - * {@link BlockChainListener}, attach it to a {@link BlockChain} and then use the getters on the - * confidence object to determine the new depth.

+ * the best chain). If you want to know when the transaction gets buried under another block, implement + * {@link org.bitcoinj.core.listeners.NewBestBlockListener} and related listeners, attach them to a + * {@link BlockChain} and then use the getters on the confidence object to determine the new depth.

*/ public void addEventListener(Listener listener) { addEventListener(Threading.USER_THREAD, listener);