am d6447bbc: Merge "Speed up GrantUri.hashCode()." into lmp-mr1-dev
* commit 'd6447bbc88b8c1c238dd8e5bfb4b0daf6d2266cb': Speed up GrantUri.hashCode().
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user