Merge "Speed up GrantUri.hashCode()." into lmp-mr1-dev

This commit is contained in:
Jeff Sharkey
2014-11-19 00:09:49 +00:00
committed by Android (Google) Code Review

View File

@@ -795,7 +795,11 @@ public final class ActivityManagerService extends ActivityManagerNative
@Override @Override
public int hashCode() { public int hashCode() {
return toString().hashCode(); int hashCode = 1;
hashCode = 31 * hashCode + sourceUserId;
hashCode = 31 * hashCode + uri.hashCode();
hashCode = 31 * hashCode + (prefix ? 1231 : 1237);
return hashCode;
} }
@Override @Override