LegacyAddress, BitcoinSerializer, MessageSerializer, TransactionReceivedInBlockListener, ECKey, ChildKeyDerivationTest: fix repetitive words in comments

This commit is contained in:
avoidaway 2024-03-16 15:34:50 +08:00 committed by Andreas Schildbach
parent 6cf2cb4211
commit ece3943bab
6 changed files with 8 additions and 8 deletions

View file

@ -161,7 +161,7 @@ public class LegacyAddress implements Address {
* Construct a {@link LegacyAddress} from its base58 form. * Construct a {@link LegacyAddress} from its base58 form.
* *
* @param params * @param params
* expected network this address is valid for, or null if if the network should be derived from the * expected network this address is valid for, or null if the network should be derived from the
* base58 * base58
* @param base58 * @param base58
* base58-encoded textual form of the address * base58-encoded textual form of the address

View file

@ -135,7 +135,7 @@ public class BitcoinSerializer extends MessageSerializer {
} }
/** /**
* Writes message to to the output stream. * Writes message to the output stream.
*/ */
@Override @Override
public void serialize(String name, byte[] message, OutputStream out) throws IOException { public void serialize(String name, byte[] message, OutputStream out) throws IOException {
@ -160,7 +160,7 @@ public class BitcoinSerializer extends MessageSerializer {
} }
/** /**
* Writes message to to the output stream. * Writes message to the output stream.
*/ */
@Override @Override
public void serialize(Message message, OutputStream out) throws IOException { public void serialize(Message message, OutputStream out) throws IOException {

View file

@ -106,7 +106,7 @@ public abstract class MessageSerializer {
public abstract void seekPastMagicBytes(ByteBuffer in) throws BufferUnderflowException; public abstract void seekPastMagicBytes(ByteBuffer in) throws BufferUnderflowException;
/** /**
* Writes message to to the output stream. * Writes message to the output stream.
* *
* @throws UnsupportedOperationException if this serializer/deserializer * @throws UnsupportedOperationException if this serializer/deserializer
* does not support serialization. This can occur either because it's a dummy * does not support serialization. This can occur either because it's a dummy
@ -116,7 +116,7 @@ public abstract class MessageSerializer {
public abstract void serialize(String name, byte[] message, OutputStream out) throws IOException, UnsupportedOperationException; public abstract void serialize(String name, byte[] message, OutputStream out) throws IOException, UnsupportedOperationException;
/** /**
* Writes message to to the output stream. * Writes message to the output stream.
* *
* @throws UnsupportedOperationException if this serializer/deserializer * @throws UnsupportedOperationException if this serializer/deserializer
* does not support serialization. This can occur either because it's a dummy * does not support serialization. This can occur either because it's a dummy

View file

@ -56,7 +56,7 @@ public interface TransactionReceivedInBlockListener {
* compared to the relativity count of another transaction received inside the same block. It is used to establish * compared to the relativity count of another transaction received inside the same block. It is used to establish
* an ordering of transactions relative to one another.</p> * an ordering of transactions relative to one another.</p>
* *
* <p>This method should return false if the given tx hash isn't known about, e.g. because the the transaction was * <p>This method should return false if the given tx hash isn't known about, e.g. because the transaction was
* a Bloom false positive. If it was known about and stored, it should return true. The caller may need to know * a Bloom false positive. If it was known about and stored, it should return true. The caller may need to know
* this to calculate the effective FP rate.</p> * this to calculate the effective FP rate.</p>
* *

View file

@ -1224,7 +1224,7 @@ public class ECKey implements EncryptableItem {
} }
/** /**
* Returns the the encrypted private key bytes and initialisation vector for this ECKey, or null if the ECKey * Returns the encrypted private key bytes and initialisation vector for this ECKey, or null if the ECKey
* is not encrypted. * is not encrypted.
*/ */
@Nullable @Nullable

View file

@ -305,7 +305,7 @@ public class ChildKeyDerivationTest {
assertEquals("Parent fingerprint of deserialized parentless private HD key is wrong", assertEquals("Parent fingerprint of deserialized parentless private HD key is wrong",
key.getParentFingerprint(), 0xbef5a2f9); key.getParentFingerprint(), 0xbef5a2f9);
// These encodings are of the the root key of that hierarchy // These encodings are of the root key of that hierarchy
assertEquals("Parent fingerprint of root node public HD key should be zero", assertEquals("Parent fingerprint of root node public HD key should be zero",
DeterministicKey.deserializeB58("xpub661MyMwAqRbcFW31YEwpkMuc5THy2PSt5bDMsktWQcFF8syAmRUapSCGu8ED9W6oDMSgv6Zz8idoc4a6mr8BDzTJY47LJhkJ8UB7WEGuduB", MAINNET).getParentFingerprint(), DeterministicKey.deserializeB58("xpub661MyMwAqRbcFW31YEwpkMuc5THy2PSt5bDMsktWQcFF8syAmRUapSCGu8ED9W6oDMSgv6Zz8idoc4a6mr8BDzTJY47LJhkJ8UB7WEGuduB", MAINNET).getParentFingerprint(),
0); 0);