Skip to content

@Nullable after @JsonProperty #8268

@leventov

Description

@leventov

A Checkstyle's Regex rule could be added to avoid putting @Nullable before @JsonProperty, like @Nullable @JsonProperty("foo") Foo foo.

Putting @Nullable immediately before the type of the variable is more semantic because @Nullable Foo is an "extended type" of a variable.

From here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions