Skip to content

[REQ][JAVA] Add @Nullable/@Nonnull annotations to clients #20804

@nvervelle

Description

@nvervelle

I'm using java generator for webclient, and the generated clients do not contain @Nullable/@Nonnull annotations in the method parameters.

When using tools like NullAway, it causes some issues because you cannot easily use the clients when setting a nullable parameter, because the parameter is not annotated with @Nullable.

I'd like to add the annotations to the method parameters, so that it's easier to enable tools like NullAway on code using the generated clients.

Some time ago, I've added the annotations to the POJO (#19600 and #19617), so I will soon submit a PR to also add the annotations to the clients.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions