Assigned
Status Update
Comments
ub...@gmail.com <ub...@gmail.com> #2
Same for @UiThread, @AnyThread, @BinderThread I suppose.
ub...@gmail.com <ub...@gmail.com> #3
It might actually be an oversight/bug, rather than a new feature.
ub...@gmail.com <ub...@gmail.com> #4
I'm not sure if what should be added is @AnnotationTarget.FIELD or @AnnotationTarget.PROPERTY, or if both might make sense.
I'd think it would also be appropriate to add @AnnotationTarget.LOCAL_VARIABLE.
Description
Component used: Annotation Version used: 1.8.0 Devices/Android versions reproduced on: N/A
I would like to see @MainThread targets include AnnotationTarget.FIELD, to express a declarative contract that a field should only be accessed from main thread: