diff options
author | Ryan Lothian <rjlothian@google.com> | 2016-01-21 15:07:01 +0000 |
---|---|---|
committer | Ryan Lothian <rjlothian@google.com> | 2016-01-21 15:07:01 +0000 |
commit | ce8d4f51b9405003e664736d81e2374dfc117db9 (patch) | |
tree | d6c872a7d1d83933993999ecba2c2c29f00c4bb6 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | c1b92381f5cc0063cf5d5ce3167ed9b70373dd5b (diff) |
Improve documentation for IntentService
The argument to onHandleIntent(Intent) is sometimes null. This
is surprising, and isn't mentioned in the Javadoc.
+ Add a warning about this behavior to the method's Javadoc.
+ Add @Nullable annotation so tools that do null safety analysis
(e.g. Android Studio) will generate a warning for apps that
dereference the intent parameter without checking.
Change-Id: I26485eba8c79ba700dd9423e5d356efbb423becd
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions