Skip to content

Commit

Permalink
JavaDoc: Fix references.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schildbach authored and schildbach committed Mar 11, 2018
1 parent fa5bdbb commit 9e16d5f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
8 changes: 3 additions & 5 deletions core/src/main/java/org/bitcoinj/core/AddressMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,13 @@ public class AddressMessage extends Message {
* Contruct a new 'addr' message.
* @param params NetworkParameters object.
* @param offset The location of the first payload byte within the array.
* @param parseRetain Whether to retain the backing byte array for quick reserialization.
* If true and the backing byte array is invalidated due to modification of a field then
* the cached bytes may be repopulated and retained if the message is serialized again in the future.
* @param serializer the serializer to use for this block.
* @param length The length of message if known. Usually this is provided when deserializing of the wire
* as the length will be provided as part of the header. If unknown then set to Message.UNKNOWN_LENGTH
* @throws ProtocolException
*/
AddressMessage(NetworkParameters params, byte[] payload, int offset, MessageSerializer setSerializer, int length) throws ProtocolException {
super(params, payload, offset, setSerializer, length);
AddressMessage(NetworkParameters params, byte[] payload, int offset, MessageSerializer serializer, int length) throws ProtocolException {
super(params, payload, offset, serializer, length);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/org/bitcoinj/core/LegacyAddress.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public class LegacyAddress extends Address {
*
* @param params
* network this address is valid for
* @param version
* version header of the address
* @param p2sh
* true if hash160 is hash of a script, false if it is hash of a pubkey
* @param hash160
* 20-byte hash of pubkey or script
*/
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/org/bitcoinj/core/UTXOProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public interface UTXOProvider {
/**
* Get the height of the chain head.
* @return The chain head height.
* @throws UTXOProvider If there is an error.
* @throws UTXOProviderException If there is an error.
*/
int getChainHeadHeight() throws UTXOProviderException;

Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/org/bitcoinj/script/Script.java
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ private static boolean castToBool(byte[] data) {
/**
* Cast a script chunk to a BigInteger.
*
* @see #castToBigInteger(byte[], int) for values with different maximum
* @see #castToBigInteger(byte[], int, boolean) for values with different maximum
* sizes.
* @throws ScriptException if the chunk is longer than 4 bytes.
*/
Expand All @@ -696,7 +696,7 @@ private static BigInteger castToBigInteger(byte[] chunk, final boolean requireMi

/**
* Cast a script chunk to a BigInteger. Normally you would want
* {@link #castToBigInteger(byte[])} instead, this is only for cases where
* {@link #castToBigInteger(byte[], boolean)} instead, this is only for cases where
* the normal maximum length does not apply (i.e. CHECKLOCKTIMEVERIFY, CHECKSEQUENCEVERIFY).
*
* @param maxLength the maximum length in bytes.
Expand Down

0 comments on commit 9e16d5f

Please sign in to comment.