| Hi, This is a choice we made when writing the Bean Validation 2.0 specification. We consider the value of an empty Optional as null. Most of the constraints are not concerned as they don't fail for null but indeed for @NotBlank, we consider null as an invalid value. Can't really say more, both positions are defensible IMHO but we had to make a choice. |