summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseArrayMap.java
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2021-07-18 23:35:20 -0700
committerYohei Yukawa <yukawa@google.com>2021-07-18 23:35:20 -0700
commit75338fd3ca5bee5f1def56f7a4c28cac24b1b4e6 (patch)
tree6c16772a803b01a60255bf9f9a135e88c16d395f /core/java/android/util/SparseArrayMap.java
parentc577086e39b857e787a230403c8125b6785b995f (diff)
Declare IMM#mIInputContext with its concrete type
This is a small refactoring that changes no semantics but just reduces some boilerplate code in InputMethodManager. We know that IMM#mIInputContext is guaranteed to be an instance of IInputConnectionWrapper, we can reduce some boilerplate code by using its concrete class when declaring it. Using its concrete type would also helps the runtime and AOT compiler do optimizations such as devirtualization because IInputConnectionWrapper is already declared as a final class. Other that such code reduction and plausible performance implications, there should be no behavior change in this CL. Bug: 192412909 Test: presubmit Change-Id: I2ee22292feeb6c806d2949bc05f2780923597e1b
Diffstat (limited to 'core/java/android/util/SparseArrayMap.java')
0 files changed, 0 insertions, 0 deletions