Skip to content

Commit 6f5987b

Browse files
committed
fix: Why not set tenant to "" in ListTasksParams$Builder?
ListTasksParams.Builder should set the tenant to "" when it is not defined. issue #653 Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
1 parent 7c10908 commit 6f5987b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎spec/src/main/java/io/a2a/spec/ListTasksParams.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public Builder tenant(String tenant) {
227227
*/
228228
public ListTasksParams build() {
229229
return new ListTasksParams(contextId, status, pageSize, pageToken, historyLength,
230-
statusTimestampAfter, includeArtifacts, Assert.checkNotNullParam("tenant", tenant));
230+
statusTimestampAfter, includeArtifacts, tenant == null ? "" : tenant);
231231
}
232232
}
233233
}

0 commit comments

Comments
 (0)