Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 699fc515 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

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
parent 79420036
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment