Merge "Fix Automated API Review issues." am: acb5eca325 am: f1f3b08982

am: affa3f497d

Change-Id: Iba1630161579571d4975aba9bbd5c767f82c8a98
This commit is contained in:
Paul Hu 2019-03-21 11:54:51 -07:00 • committed by android-build-merger
commit 2e2bc9c173

View file

@ -16,6 +16,7 @@
package android.net;
import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.annotation.TestApi;
import android.annotation.UnsupportedAppUsage;
@ -112,7 +113,8 @@ public final class RouteInfo implements Parcelable {
*/
@SystemApi
@TestApi
public RouteInfo(IpPrefix destination, InetAddress gateway, String iface, int type) {
public RouteInfo(@Nullable IpPrefix destination, @Nullable InetAddress gateway,
@Nullable String iface, int type) {
switch (type) {
case RTN_UNICAST:
case RTN_UNREACHABLE: