summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2018-02-01 15:51:34 -0800
committerChris Craik <ccraik@google.com>2018-02-08 13:11:38 -0800
commitceb269362175e90899e8bdcad4319b91ee13abb6 (patch)
tree58fbb363ff7787c769df57bbaa565efb2f49cff6 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentbc48bd8f6137955b99f51562ab4959783f827e22 (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 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions