From a9a29a29e55380ebd30175a75b285b16201002b6 Mon Sep 17 00:00:00 2001 From: Sungsoo Lim Date: Wed, 13 Aug 2014 17:30:04 +0900 Subject: Fix hashCode of TvContentRating Bug: 16963556 Change-Id: I0d419e4a47cd4b0a364d3b05063dcdbfc8a168ae --- media/java/android/media/tv/TvContentRating.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/java/android/media/tv/TvContentRating.java b/media/java/android/media/tv/TvContentRating.java index 25252ed..3e5ecef 100644 --- a/media/java/android/media/tv/TvContentRating.java +++ b/media/java/android/media/tv/TvContentRating.java @@ -1480,7 +1480,7 @@ public final class TvContentRating { Arrays.sort(subRatings); mSubRatings = subRatings; } - mHashCode = Objects.hash(mDomain, mRating, mSubRatings); + mHashCode = 31 * Objects.hash(mDomain, mRating) + Arrays.hashCode(mSubRatings); } /** -- cgit v1.1