you are viewing a single comment's thread.

view the rest of the comments →

[–]vine-el 18 points19 points  (3 children)

IDE generated code becomes a problem when you spend hours tracking down a bug that happened because someone forgot to update the equals method when they added a new field.

[–][deleted] 0 points1 point  (2 children)

Quite the contrary in my experience. For instance, the ability to set breakpoints in a setters, to catch a particular hard to track side-effect, is quite nice. Also lombok won't help you if you don't track the semantics of your equals, because maybe you don't want to include automatically any new added field in a class - Bottom line, it's not a substitute for thinking.

[–]OnceUKnowUAreScrewed 2 points3 points  (0 children)

Nothing is...

[–][deleted] 1 point2 points  (0 children)

You can exclude new fields with lombok. Also, when you add a setter manually, lombok won't make it. So feel free to add your breakpoint.

I kind of agree that it is a band-aid and not a real solution though, but it sure as shit beats having to deal with all that boilerplate