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.
A Checkstyle's Regex rule could be added to avoid putting
@Nullablebefore@JsonProperty, like@Nullable @JsonProperty("foo") Foo foo.Putting
@Nullableimmediately before the type of the variable is more semantic because@Nullable Foois an "extended type" of a variable.From here.