Sonar report the bug java:S2637 while there is no one as constructor initialize non null property
@Data
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class UserLink implements Serializable {
private Long id;
private Type type;
@lombok.NonNull
private User user;
public UserLink(User user) {
this.setUser(user);
}
}