Commit 2bde3f1e by bachinger Committed by tonihei

Clean up hashCode/equals of SessionTokenImplBase

#minor-release

PiperOrigin-RevId: 463338680
parent 428fc896
......@@ -103,7 +103,7 @@ import java.lang.annotation.Target;
@Override
public int hashCode() {
return Objects.hashCode(type, uid, packageName, serviceName);
return Objects.hashCode(uid, type, version, packageName, serviceName, componentName, iSession);
}
@Override
......@@ -113,9 +113,11 @@ import java.lang.annotation.Target;
}
SessionTokenImplBase other = (SessionTokenImplBase) obj;
return uid == other.uid
&& type == other.type
&& version == other.version
&& TextUtils.equals(packageName, other.packageName)
&& TextUtils.equals(serviceName, other.serviceName)
&& type == other.type
&& Util.areEqual(componentName, other.componentName)
&& Util.areEqual(iSession, other.iSession);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment