Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3597b55d authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Speed up GrantUri.hashCode().

It's used as a key for all outstanding permission grants, so let's
keep it fast.

Bug: 18381401
Change-Id: I4db8dba13302b98f33aacfa3e9acd9a394541cd0
parent 8c8d8b10
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -796,7 +796,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