Hacker News new | ask | show | jobs
by henning 1563 days ago
If you put @AllArgsConstructor from Lombok on that PersonEndpoint class, you should be able to remove the boilerplate `public PersonEndpoint(PersonRepository repository) { this.repository = repository; }` constructor entirely since the Lombok annotation will generate it for you. Seems reasonable to do if the point is to show "modern Java".