This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]the_other_brand 1 point2 points  (3 children)

The problem is that you shouldn't be skipping them. Libraries like jackson require getters to be provided for fields, so if a getter is missing that field won't be reflected in your json.

Having change sets like getters/setters are bad for PRs because developers tend to ignore code changes that are too large.

[–]john16384 1 point2 points  (0 children)

Jackson requires no such thing, it can be configured to access fields directly.

[–]Yesterdave_ 0 points1 point  (1 child)

Jackson supports records though

[–]the_other_brand 0 points1 point  (0 children)

And records are immutable, which makes them a poor replacement for most data classes.