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

Commit 65e3be02 authored by Nate Fischer's avatar Nate Fischer
Browse files

WebView: add @NonNull annotation to API

No change to logic, only an annotation change.

startSafeBrowsing() should never receive a null Context. This adds
@NonNull to hint to developers not to pass null Contexts.

Test: N/A
Change-Id: I46d863047bf7563ea2a1adf592f3f381be95ca49
parent e7e42ceb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1683,7 +1683,7 @@ public class WebView extends AbsoluteLayout
     * @param callback will be called on the UI thread with {@code true} if initialization is
     * successful, {@code false} otherwise.
     */
    public static void startSafeBrowsing(Context context,
    public static void startSafeBrowsing(@NonNull Context context,
            @Nullable ValueCallback<Boolean> callback) {
        getFactory().getStatics().initSafeBrowsing(context, callback);
    }