J-Fall 2019: Kaya Weers – To Lombok or not to Lombok?

About

J-Fall 2019: Kaya Weers – To Lombok or not to Lombok?

Do you hate boilerplate code? Meet Project Lombok; a Java library which replaces a lot of boilerplate with just some simple annotations. Add @Getter to your class and you can get rid of all the getters. Add @toString to your class and get a free implementation of the toString method. Add @AllArgsConstructor to your class and.. yeah you get it. Sounds perfect! Or not?

Well, there are also some disadvantages. Finding usages isn’t as easy as it used to be. Migrating to a newer Java version can be problematic. And there is probably a reason why Lombok was removed from a Spring Data project.

At the end of the session, I’ll let the audience decide: To Lombok or not to Lombok?

Share
November 2024
December 2024
No event found!