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

Commit a69a245b authored by David Su's avatar David Su
Browse files

NetworkUtils is deprecated, migrate to Inet4AddressUtils

Migrate NetworkUtils.inetAddressToInt() to
Inet4AddressUtils.inet4AddressToIntHTL() in
preparation to jarjar Inet4AddressUtils.

Bug: 145409537
Test: compiles
Change-Id: Ia57dde498db3e9b011d0a9772717b1539348cd37
parent 69015a21
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.annotation.UnsupportedAppUsage;
import android.net.NetworkInfo.DetailedState;
import android.net.NetworkUtils;
import android.net.shared.Inet4AddressUtils;
import android.os.Build;
import android.os.Parcel;
import android.os.Parcelable;
@@ -708,7 +708,7 @@ public class WifiInfo implements Parcelable {
    public int getIpAddress() {
        int result = 0;
        if (mIpAddress instanceof Inet4Address) {
            result = NetworkUtils.inetAddressToInt((Inet4Address)mIpAddress);
            result = Inet4AddressUtils.inet4AddressToIntHTL((Inet4Address) mIpAddress);
        }
        return result;
    }