Changing Generic Type on @Size, @Pattern a.s.o. from String to CharacterSequence

Description

Hi,

it would be nice, if the Generic Type of the Validators for the @Size or @Pattern Annotation (exactly for all String based Validators) could be changed from String to CharSequence. This allows the user to implement it own CharSequence Implementations (e.g. a String Delegation class) and to use the Bean validation with his own Implementation without the need of additional configuration.

Greetings,
Andreas

Environment

Hibernate Validator 4.2

Activity

Show:
Fixed

Details

Assignee

Reporter

Participants

Andreas Grund

Components

Fix versions

Affects versions

Priority

Created June 27, 2011 at 10:44 AM
Updated March 6, 2012 at 6:08 PM
Resolved December 8, 2011 at 12:52 PM