Feature Request P2
Status Update
Comments
al...@google.com <al...@google.com> #2
When we fix nullability in Jetpack libraries, it is very painful for clients. Also for us attempting to land in g3.
I think this is a good idea; however, I'm not sure if we'd run into any issues since these are currently synthetic annotations generated by Metalava. It's possible that creating real annotations might conflict with the SDK stubs.
Description
Component used: Annotation Version used: 1.1.0 Devices/Android versions reproduced on: any
If this is a bug in the library, we would appreciate if you could attach:
When I annotate a param with
@StringRes
, the linter does not reject if the value passed is 0 or -1. HoweverContext.getString(Int)
,TextView.setText(Int)
, etc will throw an exception if 0 is passed. How about adding an option (annotation param) to restrict it to valid id?Thanks