summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Lee Shombert <shombert@google.com> 2024-05-29 11:08:40 -0700
committer Lee Shombert <shombert@google.com> 2024-05-29 11:08:40 -0700
commit88b8d3704a201e85ae99ee3dcfd759f29f1874ab (patch)
treecc9793b2a3d08d3872c0ee856b7d95d291d50edc /libs/androidfw/AssetsProvider.cpp
parentae50aebaa197040064b143e6f52bce4ab464ceec (diff)
Suppress the missing Executor lint warning
Android API guidelines require an Executor overload for methods that accept a callback. The three "beginTransactionWithListener" methods do not have such an overload and these have been flagged by lint. However, Executor is not suitable for these listener objects, since the listeners expect to use thread-local variables. It would be a functional error to have the callback execute on any thread but the current thread. This commit suppresses the lint warning associated with the three APIs; the @SuppressLint annotation serves as documentation that these APIs will never use Executors. The commit also removes the TODO comments that were attached to the API. Test: presubmit (verified that the lint warning is not present) Flag: DOCS_ONLY Bug: 340874899 Change-Id: Id2edc4c90f6b4aaf939705af0ac1ebdb17fcf854
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions