public class Result {
@Nullable
@JsonProperty("ID")
private Long id;
@JsonProperty("ID")
public Long getId() {
return this.id;
}
@JsonProperty("ID")
public void setId(Long id) {
this.id = id;
}
}
and below is what I want to generate in order to catch potentional NPE issues during compile time.
public class Result {
@Nullable
@JsonProperty("ID")
private Long id;
@JsonProperty("ID")
@Nullable
public Long getId() {
return this.id;
}
@JsonProperty("ID")
public void setId(@Nullable Long id) {
this.id = id;
}
}
example how it is generated:
and below is what I want to generate in order to catch potentional NPE issues during compile time.
and same for
@Nonnull
getters/setters