Hi Folks,

In the quickstart ToDo application I just noticed the following:

    @RegEx( validation = "\\w[@&:\\-\\,\\.\\+ \\w]*" )
    // words, spaces and selected punctuation
    @MemberOrder( sequence = "2" )
    public String getDescription() {
    ...

To me it seems like validation is specified on the getter method. Is
this correct? Shouldn't this be specified on the setter or the member
field instead?

Regards,

Minto

Reply via email to