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

Commit f0b2b823 authored by yinxu's avatar yinxu
Browse files

Use java.util.Objects.hashCode to get hashcode.

Cherry-picked cleanly from:
https://android-review.git.corp.google.com/#/c/415268/

Test: Telephony sanity tests

Merged-in: I8b845f2e5e44b242278b8955807d1b40e67e1414
Change-Id: I8b845f2e5e44b242278b8955807d1b40e67e1414
(cherry picked from commit 26439f56)
parent 54c10dca
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import android.os.Parcelable;
import android.telephony.CellInfo;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * Defines the incremental network scan result.
@@ -108,7 +109,7 @@ public final class NetworkScanResult implements Parcelable {
    public int hashCode () {
        return ((scanStatus * 31)
                + (scanError * 23)
                + (networkInfos.hashCode() * 37));
                + (Objects.hashCode(networkInfos) * 37));
    }

    public static final Creator<NetworkScanResult> CREATOR =