dragome-sdk
dragome-sdk copied to clipboard
Annotation empty Array crash
Having a empty annotation array and trying to get the array from the field to check if the array contains something is crashing
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD, ElementType.METHOD })
public @interface TestAnnotation
{
int [] test() default {};
}
@TestAnnotation() // or @TestAnnotation( test = {} )
float testVar= 1.0f;