Commit 7ad34c5c by aquilescanta Committed by Oliver Woodman

Fix hashCode method for TrackSelection

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=119842923
parent d9dcc58d
...@@ -87,9 +87,7 @@ public final class TrackSelection { ...@@ -87,9 +87,7 @@ public final class TrackSelection {
@Override @Override
public int hashCode() { public int hashCode() {
if (hashCode == 0) { if (hashCode == 0) {
int result = 17; hashCode = 31 * group + Arrays.hashCode(tracks);
result = 31 * result + group;
result = 31 * result + Arrays.hashCode(tracks);
} }
return hashCode; return hashCode;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment