Skip to content

Commit e942517

Browse files
authored
Fixed javadoc warnings (#236)
* Fixed javadoc warnings * Spotless
1 parent 4f70caf commit e942517

8 files changed

Lines changed: 21 additions & 3 deletions

File tree

client-api/src/main/java/io/oxia/client/api/AsyncOxiaClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public interface AsyncOxiaClient extends AutoCloseable {
109109
* the range.
110110
* @param endKeyExclusive The key that declares the end of the range, and is <b>excluded</b> from
111111
* the range.
112+
* @param options Set {@link DeleteRangeOption options} for the delete range.
112113
* @return A future that completes when the delete call has returned.
113114
*/
114115
CompletableFuture<Void> deleteRange(
@@ -160,6 +161,7 @@ CompletableFuture<Void> deleteRange(
160161
* the range.
161162
* @param endKeyExclusive The key that declares the end of the range, and is <b>excluded</b> from
162163
* the range.
164+
* @param options Set {@link ListOption options} for the list operation.
163165
* @return The list of keys that exist within the specified range or an empty list if there were
164166
* none. Supplied via a future.
165167
*/

client-api/src/main/java/io/oxia/client/api/EncodedAuthenticationParameterSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public interface EncodedAuthenticationParameterSupport {
2222
* Plugins which use ":" and/or "," in a configuration parameter value need to implement this
2323
* interface.
2424
*
25-
* @param encodedAuthParamString
25+
* @param encodedAuthParamString the encoded configuration parameter value
2626
*/
2727
void configure(String encodedAuthParamString);
2828
}

client-api/src/main/java/io/oxia/client/api/SyncOxiaClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ PutResult put(String key, byte[] value, Set<PutOption> options)
101101
* the range.
102102
* @param endKeyExclusive The key that declares the end of the range, and is <b>excluded</b> from
103103
* the range.
104+
* @param options Set {@link DeleteRangeOption options} for the delete range.
104105
*/
105106
void deleteRange(
106107
String startKeyInclusive, String endKeyExclusive, Set<DeleteRangeOption> options);
@@ -149,6 +150,7 @@ void deleteRange(
149150
* the range.
150151
* @param endKeyExclusive The key that declares the end of the range, and is <b>excluded</b> from
151152
* the range.
153+
* @param options Set {@link ListOption options} for the list operation.
152154
* @return The list of keys that exist within the specified range, or an empty list if there were
153155
* none.
154156
*/

client-api/src/main/java/io/oxia/client/api/exceptions/KeyAlreadyExistsException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
/** The key already exists at the server. */
2121
public class KeyAlreadyExistsException extends OxiaException {
22+
/** The key that already exists at the server. */
2223
@Getter private final String key;
2324

2425
/**

client-api/src/main/java/io/oxia/client/api/exceptions/OxiaException.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,21 @@
1717

1818
/** A super-class of exceptions describing errors that occurred on an Oxia server. */
1919
public abstract class OxiaException extends Exception {
20+
/**
21+
* Creates an instance of the exception.
22+
*
23+
* @param message the exception message
24+
*/
2025
OxiaException(String message) {
2126
super(message);
2227
}
2328

29+
/**
30+
* Creates an instance of the exception.
31+
*
32+
* @param message the exception message
33+
* @param cause the cause of the exception
34+
*/
2435
OxiaException(String message, Throwable cause) {
2536
super(message, cause);
2637
}

client-api/src/main/java/io/oxia/client/api/exceptions/UnexpectedVersionIdException.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919

2020
/** The versionId at the server did not that match supplied in the call. */
2121
public class UnexpectedVersionIdException extends OxiaException {
22+
/** The record versionId present at the server. */
2223
@Getter private final long version;
24+
25+
/** The key to which the call was scoped. */
2326
@Getter private final String key;
2427

2528
/**

client-api/src/main/java/io/oxia/client/api/package-info.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
/**
1818
* The public API for interacting with Oxia.
1919
*
20-
* <p>
21-
*
2220
* <pre>
2321
* SyncOxiaClient client = OxiaClientBuilder.create("localhost:6648")
2422
* .namespace("my-namespace")

client-api/src/main/java/io/oxia/client/internal/DefaultImplementation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public class DefaultImplementation {
4343
/**
4444
* Access the actual implementation of the Oxia Client API.
4545
*
46+
* @param serviceAddress the address of the Oxia server.
4647
* @return the loaded implementation.
4748
*/
4849
public static OxiaClientBuilder getDefaultImplementation(String serviceAddress) {

0 commit comments

Comments
 (0)