Get rid of manual int->ipv4 string generation am: 3ec1eeea3a

Original change: undetermined

Change-Id: I50cb6278e0d0f2a188c4148d4b8398dd537b8022
This commit is contained in:
Robert Greenwalt
2021-05-31 04:09:56 +00:00
committed by Automerger Merge Worker

View File

@@ -18,6 +18,7 @@ package android.net;
import android.os.Parcelable;
import android.os.Parcel;
import java.net.InetAddress;
/**
* A simple object for retrieving the results of a DHCP request.
@@ -65,10 +66,7 @@ public class DhcpInfo implements Parcelable {
}
private static void putAddress(StringBuffer buf, int addr) {
buf.append(addr & 0xff).append('.').
append((addr >>>= 8) & 0xff).append('.').
append((addr >>>= 8) & 0xff).append('.').
append((addr >>>= 8) & 0xff);
buf.append(NetworkUtils.intToInetAddress(addr).getHostAddress());
}
/** Implement the Parcelable interface {@hide} */