Merge "Fix hashCode of TvContentRating" into lmp-dev

This commit is contained in:
Sungsoo Lim
2014-08-13 11:13:34 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
}
/**