New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 870741 link

Starred by 1 user

Issue metadata

Status: Available
Owner:
OOO until Feb 4th
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Android Lint not validating IntDefs and @Thread Annotations Defined in Deps

Project Member Reported by agrieve@chromium.org, Aug 3

Issue description

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.
 
Cc: sanfin@chromium.org
Owner: wnwen@chromium.org
Components: Build
Labels: DevX

Sign in to add a comment