diff options
| author | 2022-03-14 09:16:55 +0000 | |
|---|---|---|
| committer | 2022-03-14 09:16:55 +0000 | |
| commit | 9e3ee7afc677cedd8220ce7e421247bb59d25a31 (patch) | |
| tree | 980d3c376996ddab2178e44012137049075f4488 | |
| parent | 786d91fba395f771b19dd357301f00e1e59f9683 (diff) | |
| parent | 05f2831e1c124ff6714be8323e642f1afade13d6 (diff) | |
Merge "Document when types are checked in Bundle" am: 05f2831e1c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2018615
Change-Id: I4c465be7f73741b036e98172e4ba83f086c0e77c
| -rw-r--r-- | core/java/android/os/Bundle.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/java/android/os/Bundle.java b/core/java/android/os/Bundle.java index a19b51b7811b..cf28c1639fac 100644 --- a/core/java/android/os/Bundle.java +++ b/core/java/android/os/Bundle.java @@ -989,7 +989,7 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable { * Otherwise, this method might throw an exception or return {@code null}. * * @param key a String, or {@code null} - * @param clazz The type of the items inside the array + * @param clazz The type of the items inside the array. This is only verified when unparceling. * @return a Parcelable[] value, or {@code null} */ @SuppressLint({"ArrayReturn", "NullableCollection"}) @@ -1053,7 +1053,8 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable { * Otherwise, this method might throw an exception or return {@code null}. * * @param key a String, or {@code null} - * @param clazz The type of the items inside the array list + * @param clazz The type of the items inside the array list. This is only verified when + * unparceling. * @return an ArrayList<T> value, or {@code null} */ @SuppressLint("NullableCollection") @@ -1103,6 +1104,8 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable { * </ul> * * @param key a String, or null + * @param clazz The type of the items inside the sparse array. This is only verified when + * unparceling. * @return a SparseArray of T values, or null */ @SuppressWarnings("unchecked") |