Merge "Add nullability annotations"
This commit is contained in:
@@ -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<RouteInfo> getRoutes(String iface) {
|
||||
public @NonNull List<RouteInfo> getRoutes(@Nullable String iface) {
|
||||
List<RouteInfo> routes = new ArrayList<RouteInfo>(3);
|
||||
if (ipAddress != null) {
|
||||
RouteInfo connectedRoute = new RouteInfo(ipAddress, null, iface);
|
||||
|
||||
@@ -153,11 +153,14 @@ public final class ValidationProbeEvent implements IpConnectivityLog.Event {
|
||||
return (probeType & 0xff) | (firstValidation ? FIRST_VALIDATION : REVALIDATION);
|
||||
}
|
||||
|
||||
public static String getProbeName(int probeType) {
|
||||
/**
|
||||
* Get the name of a probe specified by its probe type.
|
||||
*/
|
||||
public static @NonNull String getProbeName(int probeType) {
|
||||
return Decoder.constants.get(probeType & 0xff, "PROBE_???");
|
||||
}
|
||||
|
||||
private static String getValidationStage(int probeType) {
|
||||
private static @NonNull String getValidationStage(int probeType) {
|
||||
return Decoder.constants.get(probeType & 0xff00, "UNKNOWN");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user