{{ @NotEmpty }} and {{ @NotBlank }} constraints are composed with {{ @NotNull }} . This doesn't adhere to the apparent convention followed by the remaining standard constraints.
In practical terms, this forces possibly unwanted mandatority mandatory for annotated elements. At the very least there should be an out-of-the-box version of these constraints that is not composed with {{ @NotNull }} .
Quotes from the current source code:
_" {code} @NotNull @Size(min = 1) public @interface NotEmpty { "_ ... _" } {code}
{code} @NotNull public @interface NotBlank { "_ ... } {code}
|