Paul Woitaschek
09/20/2018, 2:33 PMmemphis
09/20/2018, 2:35 PMPaul Woitaschek
09/20/2018, 2:42 PM@Retention(SOURCE)
@Target({ANNOTATION_TYPE})
public @interface IntDef {
/** Defines the allowed constants for this element */
int[] value() default {};
/** Defines whether the constants can be used as a flag, or just as an enum (the default) */
boolean flag() default false;
}
TYPE_HEADER = 0L
if it's long for youmemphis
09/20/2018, 2:45 PM@Retention(SOURCE)
@Target({ANNOTATION_TYPE})
public @interface IntDef {
/** Defines the allowed constants for this element */
long[] value() default {};
/** Defines whether the constants can be used as a flag, or just as an enum (the default) */
boolean flag() default false;
}
v1.2.51
TYPE_HEADER = 0L
still get the same errorv1.2.70
now it’s changed to Int
Paul Woitaschek
09/20/2018, 3:01 PMmemphis
09/20/2018, 3:24 PM