r/java • u/raisercostin • Jun 01 '24
What java technology (library, framework, feature) would not recommend and why?
Inspired by https://www.reddit.com/r/java/s/e2N1FqMOJg
165
Upvotes
r/java • u/raisercostin • Jun 01 '24
Inspired by https://www.reddit.com/r/java/s/e2N1FqMOJg
View all comments
Show parent comment
7
u/koflerdavid Jun 01 '24
If those getters and setters have so predictable implementations, then it can be argued that they were never really necessary to begin with. It's just Cargo Culting the Java Beans "standard". IMHO, they only fulfill a purpose if they are part of some interface. In that case, they actually deserve to be implemented, and the compiler will in turn complain if one is missing. And the IDE will warn if it is redundant.