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

Commit 5c1f88cb authored by Grant Menke's avatar Grant Menke
Browse files

Cleanup string comparison in CallEndpoint class.

This CL cleans up the equals method that i sused for string comparison by the CallEndpoint class. This change updates that method to rely on the standard .equals method provided by the java.utils.Objects class.

Test: this method is widely used so PS should provide coverage of this change
Bug: 288897277
Change-Id: I5863f323f921f146e46513a0f1b29631779f76af
parent 66bc218b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -127,7 +127,7 @@ public final class CallEndpoint implements Parcelable {
            return false;
        }
        CallEndpoint endpoint = (CallEndpoint) obj;
        return getEndpointName().toString().contentEquals(endpoint.getEndpointName())
        return Objects.equals(getEndpointName(), endpoint.getEndpointName())
                && getEndpointType() == endpoint.getEndpointType()
                && getIdentifier().equals(endpoint.getIdentifier());
    }