diff --git a/core/src/main/java/org/bitcoinj/core/AddressMessage.java b/core/src/main/java/org/bitcoinj/core/AddressMessage.java index b4053852..3582da54 100644 --- a/core/src/main/java/org/bitcoinj/core/AddressMessage.java +++ b/core/src/main/java/org/bitcoinj/core/AddressMessage.java @@ -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); } /** diff --git a/core/src/main/java/org/bitcoinj/core/UTXOProvider.java b/core/src/main/java/org/bitcoinj/core/UTXOProvider.java index aa7fdbaa..1a81e085 100644 --- a/core/src/main/java/org/bitcoinj/core/UTXOProvider.java +++ b/core/src/main/java/org/bitcoinj/core/UTXOProvider.java @@ -38,7 +38,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; diff --git a/core/src/main/java/org/bitcoinj/script/Script.java b/core/src/main/java/org/bitcoinj/script/Script.java index b164bd1f..11f5c71b 100644 --- a/core/src/main/java/org/bitcoinj/script/Script.java +++ b/core/src/main/java/org/bitcoinj/script/Script.java @@ -803,7 +803,7 @@ public class Script { /** * 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. */ @@ -815,7 +815,7 @@ public class Script { /** * 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). * * @param maxLength the maximum length in bytes.