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)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
The @setparam: use-site target annotation is meant to annotate a property with an annotation that is meant to be added to the parameter of the generated setter.
However, this does not seem to be correctly handle by Metalava, which does not include the annotation in the generated API file.
See aosp/1690007 for one such example where I replaced a manually configured getter and setter:
with the equivalent (and more compact):
which requires an updated API file which removes the parameter annotation.
Note that the generated code seems to be identical for these two versions: