Merge "Fix Automated API Review: InetAddresses"

am: 4daca39083

Change-Id: I0125d756d2026656afca9e29b7963c0e724750ac
This commit is contained in:
Paul Duffin
2019-03-01 19:15:54 -08:00
committed by android-build-merger

View File

@@ -16,6 +16,8 @@
package android.net;
import android.annotation.NonNull;
import libcore.net.InetAddressUtils;
import java.net.InetAddress;
@@ -40,7 +42,7 @@ public class InetAddresses {
* @param address the address to parse.
* @return true if the supplied address is numeric, false otherwise.
*/
public static boolean isNumericAddress(String address) {
public static boolean isNumericAddress(@NonNull String address) {
return InetAddressUtils.isNumericAddress(address);
}
@@ -57,7 +59,7 @@ public class InetAddresses {
* @return an {@link InetAddress} instance corresponding to the address.
* @throws IllegalArgumentException if {@code address} is not a numeric address.
*/
public static InetAddress parseNumericAddress(String address) {
public static @NonNull InetAddress parseNumericAddress(@NonNull String address) {
return InetAddressUtils.parseNumericAddress(address);
}
}