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

Commit 059aa39f authored by Jack Yu's avatar Jack Yu
Browse files

Used the better hash method provided by Objects

Test: Unit tests
Bug: 64132030
Change-Id: Ib0fa616b28df97caf5457fd9069fbd76a80b17cc
parent a0f863d4
Loading
Loading
Loading
Loading
+3 −11
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.os.Parcelable;
import java.net.InetAddress;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * Description of the response of a setup data call connection request.
@@ -220,17 +221,8 @@ public final class DataCallResponse implements Parcelable {

    @Override
    public int hashCode() {
        return mStatus * 31
                + mSuggestedRetryTime * 37
                + mCid * 41
                + mActive * 43
                + mType.hashCode() * 47
                + mIfname.hashCode() * 53
                + mAddresses.hashCode() * 59
                + mDnses.hashCode() * 61
                + mGateways.hashCode() * 67
                + mPcscfs.hashCode() * 71
                + mMtu * 73;
        return Objects.hash(mStatus, mSuggestedRetryTime, mCid, mActive, mType, mIfname, mAddresses,
                mDnses, mGateways, mPcscfs, mMtu);
    }

    @Override