}
Validate.isTrue(isDigitsSetCorrectly(),
"Validation constraints for @Digit are not correctly set");
if (digitsInteger != null) {
final List<AnnotationAttributeValue<?>> attrs = new ArrayList<AnnotationAttributeValue<?>>();
attrs.add(new IntegerAttributeValue(new JavaSymbolName("integer"),
digitsInteger));
attrs.add(new IntegerAttributeValue(new JavaSymbolName("fraction"),
digitsFraction));
annotations.add(new AnnotationMetadataBuilder(DIGITS, attrs));
}
}