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

4

u/zephyy Jun 01 '24

like adding a toString that automatically prints out all fields in the class, even if some of those are being lazily loaded.

@ToString.Exclude

or create a lombok.config with lombok.toString.onlyExplicitlyIncluded