diff --git a/api/current.txt b/api/current.txt index c8f5662e11be8..26797b22b0e78 100644 --- a/api/current.txt +++ b/api/current.txt @@ -6487,7 +6487,7 @@ package android.app { } public interface ZygotePreload { - method public void doPreload(android.content.pm.ApplicationInfo); + method public void doPreload(@NonNull android.content.pm.ApplicationInfo); } } diff --git a/core/java/android/app/ZygotePreload.java b/core/java/android/app/ZygotePreload.java index a295af352c0aa..eaaeb54586420 100644 --- a/core/java/android/app/ZygotePreload.java +++ b/core/java/android/app/ZygotePreload.java @@ -15,6 +15,7 @@ */ package android.app; +import android.annotation.NonNull; import android.content.pm.ApplicationInfo; /** @@ -27,8 +28,7 @@ import android.content.pm.ApplicationInfo; * {@link android.R.styleable#AndroidManifestService_useAppZygote android:useAppZygote} attribute * of the <service> tag set to true. * - * Note that this implementations of this class must provide a default constructor with no - * arguments. + * Note that implementations of this class must provide a default constructor with no arguments. */ public interface ZygotePreload { /** @@ -38,5 +38,5 @@ public interface ZygotePreload { * * @param appInfo The ApplicationInfo object belonging to the application */ - void doPreload(ApplicationInfo appInfo); + void doPreload(@NonNull ApplicationInfo appInfo); }