Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 558956]
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Certain Android SDK annotations are available only in the stub jar (android.jar) and not in attached sources because they are injected by Metalava at build time. This discrepancy confuses certain IntelliJ inspections which search for annotations in sources instead of bytecode (presumably to handle annotations with source retention).
Most notably this affects nullability annotations, which Metalava injects in many
java.*
classes. For example, the following code snippet does not trigger a nullability warning in the editor, even though it should:I have a solution ready, partly as a side effect of my recent deep dive into b/366309455 . I'll upload soon.