}
}
if ((object != null) & (stringConstraint.minLength() > 0)) {
if (object.toString().length() < stringConstraint.minLength()) errors.add(new ValidationError(field.getName(), errorCodes[2], stringConstraint, object));
}
if ((object != null) & (stringConstraint.maxLength() > 0)) {
if (object.toString().length() > stringConstraint.maxLength()) errors.add(new ValidationError(field.getName(), errorCodes[3], stringConstraint, object));
}
}
return errors;
}