I have an annotation called
@Retention( RetentionPolicy.SOURCE ) @Target( ElementType.METHOD ) public @interface JIRA { String key(); }
which allows you to add annotations like this
@JIRA( key = "JIRA1" )
is there any way for this to happen
@JIRA( key = "JIRA1", "JIRA2", ..... )
the reason is that we are currently annotating the test against Jiraโs task or fixing bugs, but sometimes, the value will be processed by the sonar. The problem is one test covering more than 1 error.
java annotations sonarqube jira
Junchen liu
source share