OSDN Git Service

Adds @NonNull to getChildSessionIds
authorPatrick Baumann <patb@google.com>
Mon, 1 Apr 2019 21:10:07 +0000 (14:10 -0700)
committerPatrick Baumann <patb@google.com>
Mon, 1 Apr 2019 21:21:51 +0000 (14:21 -0700)
Addresses API council feedback to appropriately annotate
SessionInfo.getChildSessionIds.

Test: None
Bug: 126699287
Change-Id: Iaebc4f2db07b359cef0aff863e517c221259b47c

api/current.txt
core/java/android/content/pm/PackageInstaller.java

index e6b44f1..09e76f8 100644 (file)
@@ -11454,7 +11454,7 @@ package android.content.pm {
     method @Nullable public android.graphics.Bitmap getAppIcon();
     method @Nullable public CharSequence getAppLabel();
     method @Nullable public String getAppPackageName();
-    method public int[] getChildSessionIds();
+    method @NonNull public int[] getChildSessionIds();
     method public int getInstallLocation();
     method public int getInstallReason();
     method @Nullable public String getInstallerPackageName();
index 5d6867e..a96316b 100644 (file)
@@ -2166,6 +2166,7 @@ public class PackageInstaller {
          * Returns the set of session IDs that will be committed when this session is commited if
          * this session is a multi-package session.
          */
+        @NonNull
         public int[] getChildSessionIds() {
             return childSessionIds;
         }