lovis
12/14/2017, 8:50 AMclass CreateUserDTO(
@Email @get:Email @setparam:Email
var email: String
)
?
I mean, isnt't there a way to combine these things? When I annotate the constructor param, I usually also want to annotate the getter and setter, right?yole
12/14/2017, 9:48 AMqwert_ukg
12/14/2017, 10:07 AM@[get setparam]:Email
looks terrible 🙂lovis
12/14/2017, 10:07 AMsetparam
is a really common combination. But I agree that all three (or even four, with field
) of them are really rare.
The main issue is though, that it's not intuitive that the "normal" annotation will not be transfered to the getter. It makes complete sense, but it's not intuitivelovis
12/14/2017, 10:08 AM@accessors:
or somethingqwert_ukg
12/14/2017, 10:12 AM@set:[Email Name]
, but it is implemented 🙂 )lovis
12/14/2017, 10:15 AMlovis
12/14/2017, 10:17 AM@StringRes
or @Dimension
.