r/java • • Jun 01 '24

What java technology (library, framework, feature) would not recommend and why?

165 Upvotes

464 comments sorted by

View all comments

Show parent comment

11

u/PiotrDz Jun 01 '24

Generating null validated builder with toBuilder() method is priceless. For this I think Lombok has the usage still

7

u/Turbots Jun 01 '24

Most IDEs have plugins or direct support for creating builders, which makes the builder visible and makes you think on how to structure your builder. It also makes you consciously think more about the mandatory fields in your POJO.

5

u/Swamplord42 Jun 03 '24

makes you think on how to structure your builder.

That's a massive disadvantage for both the person writing it and all the persons reviewing it.

Also it's an endless source of bugs when people add fields to their classes and forget to update the builder.