@nil2l he notifies that these annotations just a unnecessary thing, they make a data class less readable. When he need to modify data class, he should manage this field as well
n
nil2l
09/18/2017, 12:16 PM
1. With an extra line between props — pretty readable.
2. Annoteted DTO is easier to modify. If something changed on server — you can edit only an annotation and keep a prop as-is. Same for changing a prop.
But w/o annotations — you must change prop name and also all of its refs. (!) documentation.