diff options
| author | 2022-10-17 20:18:44 -0700 | |
|---|---|---|
| committer | 2022-10-17 20:18:44 -0700 | |
| commit | 699fc515e02390d8ca63391fd865993cd5216fb1 (patch) | |
| tree | c40fdd1f669b9f6edad368a0474e1ea7559e390f /libs/androidfw/AssetsProvider.cpp | |
| parent | 7942003609c0188ff3cab5b653dd5c41f2ceaf48 (diff) | |
Use WeakReference#refersTo() when possible
For a given WeakReference<T> ref,
  ref.refersTo(obj)
is more efficient than
  ref.get() == obj.
This CL applies the above rule to
  RemoteInputConnectionImpl
for a better performance.
This is mechanical refactoring.  There must be no observable behavior
change.
Bug: 182259171
Test: presubmit
Change-Id: Iddf73b0fcb16a14f6c024da4a7db136d4fea4900
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions