diff options
author | Ming-Shin Lu <lumark@google.com> | 2020-09-15 21:34:16 +0800 |
---|---|---|
committer | Ming-Shin Lu <lumark@google.com> | 2020-09-15 17:23:06 +0000 |
commit | 8b9d7baa418810047863133d336ab2f0479c1d30 (patch) | |
tree | 6bb7921f81266b27577d5b0b286c0509ddcb0b77 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 240a26d2e16e63b14b9835b89429fa6a1ffe851f (diff) |
Remove unnecessary null checking on ViewRootImpl#mWindowAttribute
From static analysis, as ViewRootImpl#mWindowAttribute is now a final
object from CL[1] and the object is created when ViewRootImpl initialized
so the object reference should not be changed, it won't be necessary to do
the null check again for some code points.
[1]: I0d749c1abb38520fe8fc477d22d6523f470e9abc
Fix: 168335781
Fix: 168319140
Test: build and check launching app without any exception.
Change-Id: I30e1efb8e52704fbd8c97dc375e7ac253c6a90a8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions