Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51c221ab authored by Torne (Richard Coles)'s avatar Torne (Richard Coles)
Browse files

Mark nullability in WebViewProviderResponse.

The packageInfo can be null when the system is in a bad state and has no
WebView implementation; mark it @Nullable to make this clear.

Test: m
Change-Id: I9f87adf46809b9f1d4d6e68f35ec0fa18617834d
parent 80a75bdb
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package android.webkit;

import android.annotation.NonNull;
import android.annotation.Nullable;
import android.compat.annotation.UnsupportedAppUsage;
import android.content.pm.PackageInfo;
import android.os.Parcel;
@@ -30,7 +32,7 @@ public final class WebViewProviderResponse implements Parcelable {
    }

    // aidl stuff
    public static final @android.annotation.NonNull Parcelable.Creator<WebViewProviderResponse> CREATOR =
    public static final @NonNull Parcelable.Creator<WebViewProviderResponse> CREATOR =
        new Parcelable.Creator<WebViewProviderResponse>() {
            public WebViewProviderResponse createFromParcel(Parcel in) {
                return new WebViewProviderResponse(in);
@@ -58,6 +60,7 @@ public final class WebViewProviderResponse implements Parcelable {
    }

    @UnsupportedAppUsage
    @Nullable
    public final PackageInfo packageInfo;
    public final int status;
}