Skip to content

Commit

Permalink
Fix javadoc for AgentClient#register (#380)
Browse files Browse the repository at this point in the history
The QueryOptions agument is NOT optional.
If a null value is passed, a NPE is thrown.
  • Loading branch information
sleberknight authored Oct 10, 2024
1 parent 91356d3 commit 384e82e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/kiwiproject/consul/AgentClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public void register(int port, List<Registration.RegCheck> checks, String name,
* the use of checks.
*
* @param registration The registration payload.
* @param options An optional QueryOptions instance.
* @param options A QueryOptions instance.
* @param queryParameterOptions The Query Parameter Options to use.
*/
public void register(Registration registration, QueryOptions options, QueryParameterOptions queryParameterOptions) {
Expand Down

0 comments on commit 384e82e

Please sign in to comment.