Size size = (Size) annotation;
if (size.min() > 0) {
sb.append("required: true, \n");
}
sb.append("minlength: ").append(size.min()).append(",\n");
sb.append("maxlength: ").append(size.max());
} else if (annotation instanceof Size.List) {
// Defines several @Size annotations on the same element
throw new UnsupportedOperationException("Not implemented");
}
return sb.toString();