am c5efb2b9: am d6447bbc: Merge "Speed up GrantUri.hashCode()." into lmp-mr1-dev

* commit 'c5efb2b92a2901f71ebcab039fec24b6dd0ab927':
  Speed up GrantUri.hashCode().
This commit is contained in:
Jeff Sharkey
2014-11-19 00:20:50 +00:00
committed by Android Git Automerger

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