diff options
Diffstat (limited to 'core/java/android/util/LongArray.java')
-rw-r--r-- | core/java/android/util/LongArray.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/util/LongArray.java b/core/java/android/util/LongArray.java index 290a89b..d5f15f0 100644 --- a/core/java/android/util/LongArray.java +++ b/core/java/android/util/LongArray.java @@ -111,7 +111,6 @@ public class LongArray implements Cloneable { } @Override - @SuppressWarnings("unchecked") public LongArray clone() { LongArray clone = null; try { @@ -154,7 +153,8 @@ public class LongArray implements Cloneable { if (index >= mSize) { throw new ArrayIndexOutOfBoundsException(mSize, index); } - System.arraycopy(mValues, index, mValues, index + 1, mSize - index); + System.arraycopy(mValues, index + 1, mValues, index, mSize - index - 1); + mSize--; } /** |