am 57b0f363: Merge "Throw on illegal arguments to ArrayUtils.equals(a1, a2, len)" into jb-mr2-dev

* commit '57b0f3638297242baca5db3e8ab4b5aab151f09e':
  Throw on illegal arguments to ArrayUtils.equals(a1, a2, len)
This commit is contained in:
Christopher Tate
2013-03-22 22:29:14 +00:00
committed by Android Git Automerger

View File

@@ -79,6 +79,10 @@ public class ArrayUtils
* @return true if they're equal, false otherwise
*/
public static boolean equals(byte[] array1, byte[] array2, int length) {
if (length < 0) {
throw new IllegalArgumentException();
}
if (array1 == array2) {
return true;
}