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

Commit 90fd0b19 authored by Marin Shalamanov's avatar Marin Shalamanov
Browse files

Use Arrays.hashCode in DeviceProductInfo

Using arrays in Objects.hash() is error prone. Instead we
call Arrays.hashCode().

Test: m services
Bug: 154302664
Change-Id: Icf00fbaa465ef60951998659ae0333b2faf7042b
parent 443c4d04
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ public final class DeviceProductInfo implements Parcelable {
    @Override
    public int hashCode() {
        return Objects.hash(mName, mManufacturerPnpId, mProductId, mModelYear, mManufactureDate,
            mRelativeAddress);
            Arrays.hashCode(mRelativeAddress));
    }

    public static final Creator<DeviceProductInfo> CREATOR =