Remove an incorrect @UserIdInt from InputMethodUtils

This is a follow up CL to my previous CL [1], which incorrectly added

  @UserIdInt

annotation to "uid" parameter in

  InputMethodUtils#checkIfPackageBelongsToUid().

As it is a uid not userId, @UserIdInt has never been appropriate for
that parameter.

This CL must have no observable behavior change since @UserIdInt
doesn't change any runtime behavior.

 [1]: Ic33e94f2bdedaa2c573be0857727d901800e5bbf
      4792bc1d99

Bug: 234882948
Test: presubmit
Change-Id: I8d6f1689c3cff80421913d64c43e242744eccf36
This commit is contained in:
Yohei Yukawa
2022-10-03 19:54:32 -07:00
parent 10b858c39f
commit 361ed635a3

View File

@@ -225,7 +225,7 @@ final class InputMethodUtils {
* @return {@code true} if the package name belongs to the UID.
*/
static boolean checkIfPackageBelongsToUid(AppOpsManager appOpsManager,
@UserIdInt int uid, String packageName) {
int uid, String packageName) {
try {
appOpsManager.checkPackage(uid, packageName);
return true;