diff options
author | 2023-09-05 14:14:49 -0700 | |
---|---|---|
committer | 2023-09-05 14:58:55 -0700 | |
commit | 5c1f88cbb1a91b5af7d4581d318832a6140d4347 (patch) | |
tree | 5f9bacff370590f603be723c9ba48c9909cbfbf9 | |
parent | 66bc218bbdebccd3a72207389fcb394f652a904e (diff) |
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
-rw-r--r-- | telecomm/java/android/telecom/CallEndpoint.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telecomm/java/android/telecom/CallEndpoint.java b/telecomm/java/android/telecom/CallEndpoint.java index ed4bf40061e2..a557cafd309a 100644 --- a/telecomm/java/android/telecom/CallEndpoint.java +++ b/telecomm/java/android/telecom/CallEndpoint.java @@ -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()); } |