Package com.facebook.infer.annotation
Annotation Type ThreadConfined
-
@Target({TYPE,FIELD,METHOD}) @Retention(CLASS) public @interface ThreadConfined
This annotation tells the thread-safety analysis to assume that mutations in the annotated class/field/method are confined to the given thread name. For the thread name, you can either use the default constants UI/ANY or add your own.