commit | c6d3f3cf25859fb9b956b88a916cdf37c9e769c6 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Fri Feb 18 09:05:10 2022 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Sat Feb 19 19:45:43 2022 +0900 |
tree | 83e5f30d5860780564bb4fd24d65c3fdcecd8845 | |
parent | 0261ced6342a830bdee3891dff02423bcca1a7ba [diff] |
Use MessageUtils instead of hardcoded strings in policyNameOf. This makes the code easier to maintain because we do not need to manually add string representations, and because it will throw at static initialization time if the clas contains duplicate POLICY_xxx values. The memory overhead is likely negligible. Bug: 216567577 Test: new coverage in FullScoreTest Change-Id: Iab23d414c8e28ff7f26060ad44fa996f277d361f