Add @Nullable to Object#equals()

This is a partial cherry-pick of change:
I5eedb571c9d78862115dfdc5dae1cf2a35343580

for connectivity classes.

Bug: 170883422
Test: m
Merged-In: I5eedb571c9d78862115dfdc5dae1cf2a35343580
Change-Id: I7dc661863b73f4198ddb4f3a1566583d0f07db3c
This commit is contained in:
Roman Kalukiewicz
2020-10-14 15:59:06 -07:00
committed by Remi NGUYEN VAN
parent fc1622a827
commit 0b6f2908c5
10 changed files with 13 additions and 11 deletions

View File

@@ -161,7 +161,7 @@ public final class MacAddress implements Parcelable {
}
@Override
public boolean equals(Object o) {
public boolean equals(@Nullable Object o) {
return (o instanceof MacAddress) && ((MacAddress) o).mAddr == mAddr;
}