Emmanuel Bernard commented on Improvement BVAL-340

@ScriptAssert(appliesTo=METHOD_PARAMETERS) / @ScriptAssert(appliesTo=ANNOTATED_ELEMENT)

'appliesTo' is technically problematic as we have only reserved attributes starting with 'valid'. Alternative names:

  • validationAppliesTo - a bit verbose

Alternatives:

1. use an annotation to mark the 'appliesTo' attribute

@interface ScriptAssert {
    ApplicationTarget @AppliesTo appliesTo() default ANNOTATED_ELEMENT;
    ...

2. use payload

@ScriptAssert(payload={APPLIES_TO_PARAMETERS}) - less safe if we consider ANNOTATED_ELEMENT as the default.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira