From 82e935478dbe9adb627abe6bbe65f34de2ebdcf6 Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Mon, 24 Jan 2022 21:09:03 -0800 Subject: [PATCH] Make InputMethodManagerService a final class This CL makes it clear that InputMethodManagerService should never be extended nor mocked, and compilers and ART should be able to optimize the code based on such an assumption. There should be no observable behavior change in the production code. Bug: 192412909 Test: presubmit Change-Id: I203554fa2964eac9879a5ba5e23ba2f7087403ed --- .../android/server/inputmethod/InputMethodManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java index 0d41a37caf0d4..f34925392981d 100644 --- a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +++ b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java @@ -204,7 +204,7 @@ import java.util.concurrent.atomic.AtomicInteger; /** * This class provides a system service that manages input methods. */ -public class InputMethodManagerService extends IInputMethodManager.Stub +public final class InputMethodManagerService extends IInputMethodManager.Stub implements Handler.Callback { static final boolean DEBUG = false; static final String TAG = "InputMethodManagerService";