Merge "Use java.util.Objects.hashCode to get hashcode."
diff --git a/telephony/java/com/android/internal/telephony/NetworkScanResult.java b/telephony/java/com/android/internal/telephony/NetworkScanResult.java
index 0099961..df80666 100644
--- a/telephony/java/com/android/internal/telephony/NetworkScanResult.java
+++ b/telephony/java/com/android/internal/telephony/NetworkScanResult.java
@@ -22,6 +22,7 @@
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 int hashCode () {
return ((scanStatus * 31)
+ (scanError * 23)
- + (networkInfos.hashCode() * 37));
+ + (Objects.hashCode(networkInfos) * 37));
}
public static final Creator<NetworkScanResult> CREATOR =