public boolean supports(Annotation annotation, Class clazz, PropertyDescriptor descriptor) {
return IsFirstLetterCapitalized.class.isInstance(annotation);
}
public void handleAnnotation(Annotation annotation, Class clazz, PropertyDescriptor descriptor, MutableBeanValidationConfiguration configuration) {
Condition cond = new AbstractCondition() {
public boolean doCheck(Object object) {
String text = (String)object;
if (text.length() == 0) {
return false;
}