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