java-rest-api
java-rest-api copied to clipboard
Avoid Java boilerplate with Lombok
Many model/POJO classes here can be easily generated with Lombok, which is a very widely used lib.
The benefits are
- Get rid of no-brainer getter and setters.
- Get rid of no-brainer but exhaustive constructor, with
@Builderor@AllArgConstructor - Get rid of no-brainer
toString(). - Avoid water-is-wet tests.
- Opportunity to use Immutable classes with
@Value
Hi. I would like to contribute if no one has worked on this issue yet!
One downside, I have seen a lombok generated project fail when lombok was used, and it can be more tricky with jackson. But all solvable..