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

Commit 864ed843 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: I23a446fdf905547163b131a43c4fc55f3b539068
parent d02b11f6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ import com.android.server.hdmi.HdmiControlService.DevicePollingCallback;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * Feature action that handles device discovery sequences.
@@ -106,7 +107,7 @@ final class DeviceDiscoveryAction extends HdmiCecFeatureAction {
     */
    DeviceDiscoveryAction(HdmiCecLocalDevice source, DeviceDiscoveryCallback callback, int delay) {
        super(source);
        mCallback = Preconditions.checkNotNull(callback);
        mCallback = Objects.requireNonNull(callback);
        mDelayPeriod = delay;
    }