Skip to content
Commit 75338fd3 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

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
parent c577086e
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