summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseBooleanArray.java
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2018-08-07 16:51:24 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-08-07 16:51:24 +0000
commite80b45506501815061b079dcb10bf87443bd385d (patch)
tree4d74a37a2b5bab1dfa593dd0b1565cd42b720c16 /core/java/android/util/SparseBooleanArray.java
parent38c9e614af1f516f44f2a74fb9d0ec6963f809a8 (diff)
parent02857a72198613a0583cdf6863edb2df59beee04 (diff)
Merge "Merge Android Pie into master"
Diffstat (limited to 'core/java/android/util/SparseBooleanArray.java')
-rw-r--r--core/java/android/util/SparseBooleanArray.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/util/SparseBooleanArray.java b/core/java/android/util/SparseBooleanArray.java
index 4f76463a653e..68d347c912bf 100644
--- a/core/java/android/util/SparseBooleanArray.java
+++ b/core/java/android/util/SparseBooleanArray.java
@@ -117,7 +117,11 @@ public class SparseBooleanArray implements Cloneable {
}
}
- /** @hide */
+ /**
+ * Removes the mapping at the specified index.
+ * <p>
+ * For indices outside of the range {@code 0...size()-1}, the behavior is undefined.
+ */
public void removeAt(int index) {
System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1));
System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1));