diff options
| author | Chris Craik <ccraik@google.com> | 2018-02-01 15:51:34 -0800 |
|---|---|---|
| committer | Chris Craik <ccraik@google.com> | 2018-02-08 13:11:38 -0800 |
| commit | ceb269362175e90899e8bdcad4319b91ee13abb6 (patch) | |
| tree | 58fbb363ff7787c769df57bbaa565efb2f49cff6 /docs/html/sdk/api_diff/11/changes | |
| parent | bc48bd8f6137955b99f51562ab4959783f827e22 (diff) | |
Change Resources.getDrawable nullability
Resources.getDrawable() was annotated @Nullable because there was one
very particular path where Bitmap decoding would fail and trigger a null
return.
As part of the switch to ImageDecoder, that path was changed to now throw
an IOException, which will result as a NotFoundException to the caller of
getDrawable.
This CL annotates that path as @NonNull to reduce pain of dealing with
@Nullable method that was very unlikely to be null in practice.
Also fixes many other missing nullability annotations, and relabel
many @Nullable paths that would never return null in practice as
@NonNull.
Bug: 69543526
Test: ResourcesTest
Change-Id: Ib01eca970c5c9969998ce5b265b120aa7048b41a
Diffstat (limited to 'docs/html/sdk/api_diff/11/changes')
0 files changed, 0 insertions, 0 deletions
