package kotlin.collections; import java.lang.reflect.Array; import java.util.Arrays; import kotlin.jvm.internal.Intrinsics; /* loaded from: classes5.dex */ public abstract class ArraysKt__ArraysJVMKt { public static final Object[] arrayOfNulls(Object[] reference, int i) { Intrinsics.checkNotNullParameter(reference, "reference"); Object newInstance = Array.newInstance(reference.getClass().getComponentType(), i); Intrinsics.checkNotNull(newInstance, "null cannot be cast to non-null type kotlin.Array"); return (Object[]) newInstance; } public static final void copyOfRangeToIndexCheck(int i, int i2) { if (i <= i2) { return; } throw new IndexOutOfBoundsException("toIndex (" + i + ") is greater than size (" + i2 + ")."); } public static int contentDeepHashCode(Object[] objArr) { return Arrays.deepHashCode(objArr); } }