Skip to content

Why not set tenant to "" in ListTasksParams$Builder? #653

@yuyu123-yuyu

Description

@yuyu123-yuyu

Hi, I found that in ListTasksParams$Builder, the tenant field is required to be nonNull.

statusTimestampAfter, includeArtifacts, Assert.checkNotNullParam("tenant", tenant));

Whereas in MessageSendParams, the builder sets the tenant field to "" if it is null.

tenant == null ? "" : tenant);

Why the difference?

Considering that the constructors of ListTasksParams also set the tenant field to "" when it is not specified, would it be possible to do the same for ListTasksParams$Builder as well?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions