Skip to content

Commit d4b8dc2

Browse files
committed
JavaDoc warning fixes, prep for 0.8.0
1 parent d8563a9 commit d4b8dc2

File tree

35 files changed

+49
-62
lines changed

35 files changed

+49
-62
lines changed

convex-cli/src/main/java/convex/cli/mixins/RemotePeerMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public InetSocketAddress getSocketAddress() {
5656

5757
/**
5858
* Gets the socket address for the remote peer, or null if not specified in CLI
59-
* @return
59+
* @return Socket address instance, or null if not specified at CLI
6060
*/
6161
public InetSocketAddress getSpecifiedSource() {
6262
if (hostname==null) return null;

convex-core/src/main/java/convex/core/Result.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private Result(AVector<ACell> values) {
7373
/**
7474
* Build a Result from a vector. WARNING: does not validate values
7575
* @param values
76-
* @return
76+
* @return Result instance
7777
*/
7878
public static Result buildFromVector(AVector<ACell> values) {
7979
return new Result(values);

convex-core/src/main/java/convex/core/cpos/Belief.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ public static Belief create(AKeyPair kp, Order order) {
9090

9191
/**
9292
* Creates a Belief from source data , usually an Index of Peer key -> Signed Orders
93-
* @param source
94-
* @return
93+
* @param source Map containing Orders
94+
* @return Belief constructed from given Order(s), or null if not valid
9595
*/
9696
@SuppressWarnings("unchecked")
9797
public static Belief fromOrders(ACell source) {
@@ -244,7 +244,7 @@ public void validateStructure() throws InvalidDataException {
244244
/**
245245
* Propose a new Block at the end of the current Order
246246
* @param kp Keypair with which to sign Order
247-
* @param signedBlock Signed Block of transactions
247+
* @param signedBlocks Signed Blocks of transactions
248248
* @return Updated Belief with new Order
249249
*/
250250
@SuppressWarnings("unchecked")

convex-core/src/main/java/convex/core/crypto/AKeyPair.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public static PublicKey publicKeyFromBytes(byte[] key) throws BadFormatException
316316
/**
317317
* Create a key pair from a hex string seed. Strips whitespace and leading 0x if needed.
318318
* @param seed Hex string containing 32 byte Ed25519 seed
319-
* @return
319+
* @return Key pair instance
320320
*/
321321
public static AKeyPair create(String seed) {
322322
Blob b=Blob.parse(seed);

convex-core/src/main/java/convex/core/crypto/BIP39.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public static List<String> createWordsAddingChecksum(byte[] entropy, int n) {
367367

368368
/**
369369
* Check if BIP39 checksum is correct
370-
* @param s
370+
* @param mnemonic BIP39 mnemonic words
371371
* @return True if BIP39 checksum is valid
372372
*/
373373
public static boolean checkSum(String mnemonic) {
@@ -408,7 +408,7 @@ public static byte[] mnemonicToBytes(String mnemonic) {
408408

409409
/**
410410
* Gets bytes containing the entropy and checksum used to create the given words
411-
* @param mnemonic
411+
* @param words List of BIP39 words (should be valid BIP39)
412412
* @return byte array of sufficient size, or null if not valid BIP39 words
413413
*/
414414
public static byte[] mnemonicToBytes(List<String> words) {
@@ -510,7 +510,7 @@ public static String checkWords(List<String> words) {
510510
/**
511511
* Extends an abbreviated form of a BIP39 word to a full word e.g. 'SHAL' => 'shallow'
512512
* @param abbr
513-
* @return
513+
* @return Full lowercase PIB39 word
514514
*/
515515
public static String extendWord(String abbr) {
516516
return ABBR.get(abbr.trim().toLowerCase());

convex-core/src/main/java/convex/core/cvm/Context.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2382,7 +2382,7 @@ public AccountKey getPeer() {
23822382

23832383
/**
23842384
* Gets the most recent log entry, or null if not available.
2385-
* @return
2385+
* @return Last log entry, or null if no log entries present
23862386
*/
23872387
public AVector<ACell> lastLog() {
23882388
AVector<AVector<ACell>> log=getLog();

convex-core/src/main/java/convex/core/cvm/Ops.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public static <T extends ACell> AOp<T> ensureOp(ACell a) {
6666

6767
/**
6868
* Cast any value to an Op. Returns value as a Constant op if not already an Op
69-
* @param aOp
70-
* @return
69+
* @param a Cell to cast to an Op (null results in a Constant nil op)
70+
* @return Op instance
7171
*/
7272
@SuppressWarnings("unchecked")
7373
public static <T extends ACell> AOp<T> castOp(ACell a) {

convex-core/src/main/java/convex/core/cvm/Peer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ public boolean isReadyToPublish() {
741741

742742
/**
743743
* Gets the genesis state hash for this peer
744-
* @return
744+
* @return Hash of genesis state
745745
*/
746746
public Hash getGenesisHash() {
747747
return getGenesisState().getHash();

convex-core/src/main/java/convex/core/cvm/State.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ public State withBalance(Address address, long newBalance) {
202202
*
203203
* @param signedBlock Signed Block to apply
204204
* @return The BlockResult from applying the given Block to this State
205-
* @throws InvalidBlockException
206205
*/
207206
public BlockResult applyBlock(SignedData<Block> signedBlock) {
208207
Block block=null;
@@ -510,7 +509,7 @@ public ResultContext applyTransaction(SignedData<ATransaction> t2, TransactionCo
510509
*
511510
* There are three phases in application of a transaction:
512511
* <ol>
513-
* <li>Preparation for accounting, with {@link #prepareTransaction(ResultContext) prepareTransaction}</li>
512+
* <li>Preparation for accounting, with {@link #prepareTransaction(ResultContext,TransactionContext) prepareTransaction}</li>
514513
* <li>Functional application of the transaction with ATransaction.apply(....)</li>
515514
* <li>Completion of accounting, with completeTransaction</li>
516515
* </ol>
@@ -552,7 +551,7 @@ public ResultContext applyTransaction(ATransaction t, TransactionContext tctx) {
552551
/**
553552
* Apply a transaction in a detached transaction context, mainly for test / query
554553
* @param t Transaction
555-
* @return
554+
* @return ResultContext after transaction is applied
556555
*/
557556
public ResultContext applyTransaction(ATransaction t) {
558557
return applyTransaction(t,TransactionContext.create(this));

convex-core/src/main/java/convex/core/cvm/ops/Invoke.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static <T extends ACell> Invoke<T> create(AOp<?>... ops) {
4545
* Build an invoke using the given values. Slow, for testing purposes
4646
* @param <T>
4747
* @param vals
48-
* @return
48+
* @return Invoke transaction instance
4949
*/
5050
public static <T extends ACell> Invoke<T> build(Object... vals) {
5151
int n=vals.length;

0 commit comments

Comments
 (0)