deepErrors.addAll(inner);
i++;
}
errors.addAll(deepErrors);
}
if (col.size() < collectionConstraint.minLength()) errors.add(new ValidationError(field.getName(), errorCodes[2], collectionConstraint, collection));
if (col.size() > collectionConstraint.maxLength()) errors.add(new ValidationError(field.getName(), errorCodes[3], collectionConstraint, collection));
} else {
throw new IllegalArgumentException("The annotated element is not a collection [" + collection + "]");
}
}