hibernate/hibernate-validator — pull request #322 by khalidq (2014-06-27 12:43:04+00:00)
Title: HV-877 Supporting type arguments annotations constraints

This is a bit messy, but it’s just to show the direction and to get your feedback.

Nested unwrapping is also supported. I haven’t worked on maps yet. The following shows what I have tested:

List<@NotBlank String>

@UnwrapValidatedValue
Optional<@NotBlank String> email

@UnwrapValidatedValue
Optional<@UnwrapValidatedValue @NotBlank StringProperty>