Open xpenatan opened 7 years ago
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;
Having a empty annotation array and trying to get the array from the field to check if the array contains something is crashing