From be381ab943eea158482d2df07a872846b9a0e2e4 Mon Sep 17 00:00:00 2001 From: Remi NGUYEN VAN Date: Mon, 25 Mar 2019 16:41:08 +0900 Subject: [PATCH] Add nullability annotations Add nullability annotations on the following methods: - StaticIpConfiguration#getRoutes - ValidationProbeEvent#getProbeName Test: m Bug: 128935825 Change-Id: I1c17d200f3125e684c4e4d67b2f7f079eda310b6 --- core/java/android/net/StaticIpConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/net/StaticIpConfiguration.java b/core/java/android/net/StaticIpConfiguration.java index 0728d83cbd..14dbca0183 100644 --- a/core/java/android/net/StaticIpConfiguration.java +++ b/core/java/android/net/StaticIpConfiguration.java @@ -134,7 +134,7 @@ public final class StaticIpConfiguration implements Parcelable { * route to the gateway as well. This configuration is arguably invalid, but it used to work * in K and earlier, and other OSes appear to accept it. */ - public @NonNull List getRoutes(String iface) { + public @NonNull List getRoutes(@Nullable String iface) { List routes = new ArrayList(3); if (ipAddress != null) { RouteInfo connectedRoute = new RouteInfo(ipAddress, null, iface);