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

Commit c4f79765 authored by Ying Xu's avatar Ying Xu Committed by android-build-merger
Browse files

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

am: 3890689b

Change-Id: I07e33a09f7ed2af457d2ad6261b5469b9dfd15c2
parents 8c1e6e49 3890689b
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -22,6 +22,7 @@ import android.telephony.CellInfo;
import java.util.Arrays;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.ArrayList;
import java.util.List;
import java.util.List;
import java.util.Objects;


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


    public static final Creator<NetworkScanResult> CREATOR =
    public static final Creator<NetworkScanResult> CREATOR =