how can an annotation with integer values, like @Range(min = 0, max = 10) be added to AnnotationSource.
setStringValue and setLiteralValue methods only allows to add String values.
Hi Cuneyt,
Use setLiteralValue and convert your value to String:
eg:
ann.setLiteralValue("max", String.valueOf(10));