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

am: 3890689bb2

Change-Id: I6b295dfe38e8c75ab6dd3add2521d63b62f4c8f1
This commit is contained in:
Ying Xu
2017-06-15 17:06:03 +00:00
committed by android-build-merger

View File

@@ -22,6 +22,7 @@ import android.telephony.CellInfo;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* Defines the incremental network scan result.
@@ -111,7 +112,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 =