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

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

View File

@@ -795,7 +795,11 @@ public final class ActivityManagerService extends ActivityManagerNative
@Override
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