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

Commit cb3ccbc9 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing equality check in ComponentKey

Bug: 356914468
Flag: EXEMPT bugfix
Test: None
Change-Id: I31c2829d3ee0ed206add833e6157b45c129e9d48
parent 5bb65d93
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -48,8 +48,8 @@ public class ComponentKey {

    @Override
    public boolean equals(Object o) {
        ComponentKey other = (ComponentKey) o;
        return other.componentName.equals(componentName) && other.user.equals(user);
        return (o instanceof ComponentKey other)
                && other.componentName.equals(componentName) && other.user.equals(user);
    }

    /**