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

Commit 262f8469 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Used the better hash method provided by Objects"

parents b6d5a85a 059aa39f
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