Open GoogleCodeExporter opened 9 years ago
No idea about the exact rules, but in principle @Data implies a
@NoArgsConstructor and @Builder implies an @AllArgsConstructor. In case a
constructor already exists (possibly due to another annotation), this
implication may or may not get omitted according to some subtle implementation
details. In any case, I'd go for `@Data @Builder @NoArgsConstructor
@AllArgsConstructor` to be sure as an explicit constructor annotation gets
always honored.
Original comment by Maaarti...@gmail.com
on 5 Feb 2015 at 5:57
It works if I add @NoArgsConstructor @AllArgsConstructor.
But I suggest that combining @Data and @Builder will add implicitly both
NoArgsConstructor and AllArgsConstructor to keep the code pretty and clean.
Original comment by amine.bouhamidi
on 6 Feb 2015 at 3:03
Original issue reported on code.google.com by
amine.bouhamidi
on 5 Feb 2015 at 7:04