final Annotation<JavaClass> constraintAnnotation = addConstraintOnProperty(property, onAccessor,
DecimalMax.class, message);
constraintAnnotation.setStringValue(max);
JavaSourceFacet javaSourceFacet = project.getFacet(JavaSourceFacet.class);
javaSourceFacet.saveJavaSource(constraintAnnotation.getOrigin());
return outputConstraintAdded(property, DecimalMax.class);
}
public Result addSizeConstraint(Project project, Property property, boolean onAccessor, String message,
Integer min, Integer max) throws FileNotFoundException