Correct Preconditions.checkNotNull usage.

Reference to check should be first parameter.

Bug: 146340409

Test: Treehugger
Change-Id: If5bd0cf8943c43c42a77997741edcc5b64178804
This commit is contained in:
Daulet Zhanguzin
2019-12-18 15:26:17 +00:00
parent 87a7b2f694
commit f16032a0ba

View File

@@ -12872,7 +12872,7 @@ public class PackageManagerService extends IPackageManager.Stub
@Override
public String[] getUnsuspendablePackagesForUser(String[] packageNames, int userId) {
Preconditions.checkNotNull("packageNames cannot be null", packageNames);
Preconditions.checkNotNull(packageNames, "packageNames cannot be null");
mContext.enforceCallingOrSelfPermission(Manifest.permission.SUSPEND_APPS,
"getUnsuspendablePackagesForUser");
final int callingUid = Binder.getCallingUid();