Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38bb95b8 authored by Daulet Zhanguzin's avatar Daulet Zhanguzin
Browse files

Replace com.android.internal.util.Preconditions.checkNotNull with

java.util.Objects.requireNonNull

Bug: 126528330

Test: Treehugger
Change-Id: I4e7f9d60e4064d6cf4c3707c1e55acf3862db313
parent 856ce4a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -106,7 +106,7 @@ public class SliceManagerService extends ISliceManager.Stub {
    @VisibleForTesting
    @VisibleForTesting
    SliceManagerService(Context context, Looper looper) {
    SliceManagerService(Context context, Looper looper) {
        mContext = context;
        mContext = context;
        mPackageManagerInternal = Preconditions.checkNotNull(
        mPackageManagerInternal = Objects.requireNonNull(
                LocalServices.getService(PackageManagerInternal.class));
                LocalServices.getService(PackageManagerInternal.class));
        mAppOps = context.getSystemService(AppOpsManager.class);
        mAppOps = context.getSystemService(AppOpsManager.class);
        mAssistUtils = new AssistUtils(context);
        mAssistUtils = new AssistUtils(context);