I have a Annotation called
@Retention( RetentionPolicy.SOURCE ) @Target( ElementType.METHOD ) public @interface JIRA { /** * The \'Key\' (Bug number /
Change your key() function to return String[] rather than String then you can pass various values using String[]
key()
String[]
String
public @interface JIRA { /** * The 'Key' (Bug number / JIRA reference) attribute of the JIRA issue. */ String[] key(); }
Use it like below
@JIRA(key = {"JIRA1", "JIRA2"})