struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4016) Refactor validationType to be an Enum and not a String
Date Sun, 17 Mar 2013 13:35:14 GMT

    [ https://issues.apache.org/jira/browse/WW-4016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13604596#comment-13604596
] 

Lukasz Lenart commented on WW-4016:
-----------------------------------

It should be rather ValidatorName and type should be reserved to be used as a class reference
;-)

Anyway, I have notice the String must remain as it is used with {{@CustomValidator}}.
                
> Refactor validationType to be an Enum and not a String
> ------------------------------------------------------
>
>                 Key: WW-4016
>                 URL: https://issues.apache.org/jira/browse/WW-4016
>             Project: Struts 2
>          Issue Type: Sub-task
>          Components: XML Validators
>    Affects Versions: 2.3.12
>            Reporter: Lukasz Lenart
>            Priority: Minor
>             Fix For: 2.3.13
>
>
> Right no validatorType is a simple String in AnnotationValidationConfigurationBuilder
which can lead to mistakes.
> {code:java}
> String validatorType = "regex";
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message