i have the following code:
public static final String MY_CONSTANT_A = "A";
public static final String MY_CONSTANT_B = "B";
@StringDef(value={
MY_CONSTANT_A,
MY_CONSTANT_B
})
private @interface MyAnnotation{}
public static void someFunc(@MyAnnotation String str){
}
now when im trying to use string inside someFunc i got the next lint error as excepted:
now when i change my function to String ... str im not getting this lint error anymore.
public static void someFunc(@MyAnnotation String... str){
}
what is the way to do this?

