summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorChalard Jean <jchalard@google.com>2019-12-03 20:30:59 +0900
committerChalard Jean <jchalard@google.com>2020-02-04 16:28:20 +0900
commit9956bada813f912df6b72198c1996fcc6af2419e (patch)
tree0087d3cbc8826f6170b48fed05f4ea99b114cf5e /tools/aapt2/java/JavaClassGenerator_test.cpp
parent59954c819e8c86359bd7d22c21b3eda8b3c650af (diff)
[NS A31] Simplification
The condition this is testing for cannot actually be false. The only place where the code writes a null value into this map is at the end of computeRequestReassignmentForNetwork : reassignedRequests.put(nri, null). This proves the code the if() block, which proves that newNetwork.isSatisfyingRequest(nri.request.requestId) is true. By definition newNetwork.isSatisfyingRequest(nri) implies that nri.mSatifier == newNetwork, which proves that previousSatisfier == newNetwork whenever newSatisfier is null. Fixes: 146482072 Test: FrameworksNetTests Change-Id: Ifd6faedce7d49757b82a5f341076ab208b0ccfcb
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions