diff --git a/core/src/main/java/org/bitcoinj/core/AbstractBlockChain.java b/core/src/main/java/org/bitcoinj/core/AbstractBlockChain.java index 99631696..4fd4a0fd 100644 --- a/core/src/main/java/org/bitcoinj/core/AbstractBlockChain.java +++ b/core/src/main/java/org/bitcoinj/core/AbstractBlockChain.java @@ -857,7 +857,7 @@ public abstract class AbstractBlockChain { } /** - * @return the height of the best known chain, convenience for getChainHead().getHeight(). + * @return the height of the best known chain, convenience for {@code getChainHead().getHeight()}. */ public final int getBestChainHeight() { return getChainHead().getHeight(); diff --git a/core/src/main/java/org/bitcoinj/core/ECKey.java b/core/src/main/java/org/bitcoinj/core/ECKey.java index 237f5f6c..faba5e89 100644 --- a/core/src/main/java/org/bitcoinj/core/ECKey.java +++ b/core/src/main/java/org/bitcoinj/core/ECKey.java @@ -444,8 +444,8 @@ public class ECKey implements EncryptableItem { } /** - * Returns public key bytes from the given private key. To convert a byte array into a BigInteger, use - * new BigInteger(1, bytes); + * Returns public key bytes from the given private key. To convert a byte array into a BigInteger, + * use {@code new BigInteger(1, bytes);} */ public static byte[] publicKeyFromPrivate(BigInteger privKey, boolean compressed) { ECPoint point = publicPointFromPrivate(privKey); @@ -453,8 +453,8 @@ public class ECKey implements EncryptableItem { } /** - * Returns public key point from the given private key. To convert a byte array into a BigInteger, use - * new BigInteger(1, bytes); + * Returns public key point from the given private key. To convert a byte array into a BigInteger, + * use {@code new BigInteger(1, bytes);} */ public static ECPoint publicPointFromPrivate(BigInteger privKey) { /* @@ -1310,7 +1310,7 @@ public class ECKey implements EncryptableItem { /** *
Given a textual message, returns a byte buffer formatted as follows:
- *[24] "Bitcoin Signed Message:\n" [message.length as a varint] message
+ *{@code [24] "Bitcoin Signed Message:\n" [message.length as a varint] message}
*/ private static byte[] formatMessageForSigning(String message) { try { diff --git a/core/src/main/java/org/bitcoinj/core/StoredBlock.java b/core/src/main/java/org/bitcoinj/core/StoredBlock.java index 4bc81530..0aaee08a 100644 --- a/core/src/main/java/org/bitcoinj/core/StoredBlock.java +++ b/core/src/main/java/org/bitcoinj/core/StoredBlock.java @@ -107,7 +107,7 @@ public class StoredBlock { /** * Given a block store, looks up the previous block in this chain. Convenience method for doing - * store.get(this.getHeader().getPrevBlockHash()). + * {@code store.get(this.getHeader().getPrevBlockHash())}. * * @return the previous block in the chain or null if it was not found in the store. */ diff --git a/core/src/main/java/org/bitcoinj/core/TransactionInput.java b/core/src/main/java/org/bitcoinj/core/TransactionInput.java index 2e52c4e7..0691bb5b 100644 --- a/core/src/main/java/org/bitcoinj/core/TransactionInput.java +++ b/core/src/main/java/org/bitcoinj/core/TransactionInput.java @@ -497,7 +497,7 @@ public class TransactionInput extends ChildMessage { * The "IsStandard" rules control whether the default Bitcoin Core client blocks relay of a tx / refuses to mine it, * however, non-standard transactions can still be included in blocks and will be accepted as valid if so. * - *This method simply calls DefaultRiskAnalysis.isInputStandard(this).
+ *This method simply calls {@code DefaultRiskAnalysis.isInputStandard(this)}.
*/ public DefaultRiskAnalysis.RuleViolation isStandard() { return DefaultRiskAnalysis.isInputStandard(this); diff --git a/core/src/main/java/org/bitcoinj/core/VersionMessage.java b/core/src/main/java/org/bitcoinj/core/VersionMessage.java index 686c2fa4..375a607f 100644 --- a/core/src/main/java/org/bitcoinj/core/VersionMessage.java +++ b/core/src/main/java/org/bitcoinj/core/VersionMessage.java @@ -245,7 +245,7 @@ public class VersionMessage extends Message { * and version are not allowed to contain such characters. * *Anything put in the "comments" field will appear in brackets and may be used for platform info, or anything - * else. For example, calling appendToSubVer("MultiBit", "1.0", "Windows") will result in a subVer being + * else. For example, calling {@code appendToSubVer("MultiBit", "1.0", "Windows")} will result in a subVer being * set of "/bitcoinj:1.0/MultiBit:1.0(Windows)/". Therefore the / ( and ) characters are reserved in all these * components. If you don't want to add a comment (recommended), pass null.
* diff --git a/core/src/main/java/org/bitcoinj/core/listeners/TransactionConfidenceEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/TransactionConfidenceEventListener.java index 542bd017..4366f6cc 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/TransactionConfidenceEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/TransactionConfidenceEventListener.java @@ -38,9 +38,8 @@ public interface TransactionConfidenceEventListener { * will then re-use the same outputs when creating the next spend. ** - *
To find if the transaction is dead, you can use tx.getConfidence().getConfidenceType() == - * TransactionConfidence.ConfidenceType.DEAD. If it is, you should notify the user - * in some way so they know the thing they bought may not arrive/the thing they sold should not be dispatched.
+ *To find if the transaction is dead, you can use {@code tx.getConfidence().getConfidenceType() == TransactionConfidence.ConfidenceType.DEAD}. + * If it is, you should notify the user in some way so they know the thing they bought may not arrive/the thing they sold should not be dispatched.
* *Note that this callback will be invoked for every transaction in the wallet, for every new block that is * received (because the depth has changed). If you want to update a UI view from the contents of the wallet diff --git a/core/src/main/java/org/bitcoinj/utils/MonetaryFormat.java b/core/src/main/java/org/bitcoinj/utils/MonetaryFormat.java index 63f56d8e..b385505f 100644 --- a/core/src/main/java/org/bitcoinj/utils/MonetaryFormat.java +++ b/core/src/main/java/org/bitcoinj/utils/MonetaryFormat.java @@ -150,7 +150,7 @@ public final class MonetaryFormat { *
* *- * For example, if you pass 4,2 it will add four decimals to your formatted string if needed, and then add + * For example, if you pass {@code 4,2} it will add four decimals to your formatted string if needed, and then add * another two decimals if needed. At this point, rather than adding further decimals the value will be rounded. *
* @@ -173,7 +173,7 @@ public final class MonetaryFormat { * * *- * For example, if you pass 1,8 it will up to eight decimals to your formatted string if needed. After + * For example, if you pass {@code 1,8} it will up to eight decimals to your formatted string if needed. After * these have been used up, rather than adding further decimals the value will be rounded. *
* diff --git a/core/src/main/java/org/bitcoinj/wallet/Wallet.java b/core/src/main/java/org/bitcoinj/wallet/Wallet.java index 514216eb..e69d3e9a 100644 --- a/core/src/main/java/org/bitcoinj/wallet/Wallet.java +++ b/core/src/main/java/org/bitcoinj/wallet/Wallet.java @@ -4242,7 +4242,7 @@ public class Wallet extends BaseTaggableObject } /** - * Convenience wrapper for setCoinSelector(Wallet.AllowUnconfirmedCoinSelector.get()). If this method + * Convenience wrapper for {@code setCoinSelector(Wallet.AllowUnconfirmedCoinSelector.get())}. If this method * is called on the wallet then transactions will be used for spending regardless of their confidence. This can * be dangerous - only use this if you absolutely know what you're doing! */ diff --git a/core/src/main/java/org/bitcoinj/wallet/WalletProtobufSerializer.java b/core/src/main/java/org/bitcoinj/wallet/WalletProtobufSerializer.java index 75fdf9cc..e582c7c4 100644 --- a/core/src/main/java/org/bitcoinj/wallet/WalletProtobufSerializer.java +++ b/core/src/main/java/org/bitcoinj/wallet/WalletProtobufSerializer.java @@ -67,7 +67,7 @@ import static com.google.common.base.Preconditions.checkNotNull; * a data interchange format developed by Google with an efficient binary representation, a type safe specification * language and compilers that generate code to work with those data structures for many languages. Protocol buffers * can have their format evolved over time: conceptually they represent data using (tag, length, value) tuples. The - * format is defined by the wallet.proto file in the bitcoinj source distribution.+ * format is defined by the {@code wallet.proto} file in the bitcoinj source distribution.
* * This class is used through its static methods. The most common operations are writeWallet and readWallet, which do * the obvious operations on Output/InputStreams. You can use a {@link ByteArrayInputStream} and equivalent @@ -147,7 +147,7 @@ public class WalletProtobufSerializer { /** * Formats the given wallet (transactions and keys) to the given output stream in protocol buffer format.
* - * Equivalent to walletToProto(wallet).writeTo(output); + * Equivalent to {@code walletToProto(wallet).writeTo(output);} */ public void writeWallet(Wallet wallet, OutputStream output) throws IOException { Protos.Wallet walletProto = walletToProto(wallet); diff --git a/wallettemplate/src/main/java/wallettemplate/utils/easing/ElasticInterpolator.java b/wallettemplate/src/main/java/wallettemplate/utils/easing/ElasticInterpolator.java index 50493bdc..414feb59 100644 --- a/wallettemplate/src/main/java/wallettemplate/utils/easing/ElasticInterpolator.java +++ b/wallettemplate/src/main/java/wallettemplate/utils/easing/ElasticInterpolator.java @@ -96,7 +96,7 @@ public class ElasticInterpolator extends EasingInterpolator { } /** - * The amplitude. The minimum value is 1. If this value is < 1 it will be set to 1 during animation. + * The amplitude. The minimum value is 1. If this value is < 1 it will be set to 1 during animation. * * @return The property. * @see #getAmplitude()