Our usage of Android Lint is broken when it comes to these annotations, because the annotations are defined as @Retention(SOURCE).
To fix this, we could either:
1) Construct annotations.xml files and pass them to lint so it knows what annotations exist, or
2) Pass all source .java files of deps to lint
Android seems to have no stand-alone tool for creating annotations.xml (built into gradle), so 2) might be an easier fix. Lint has also apparently started doing more sophisticated source-level introspection than just looking for annotations, so we'd probably get better results with #2 than with #1.
Comment 1 by sanfin@chromium.org
, Aug 3