You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

package p071y;
import java.lang.reflect.Array;
/* renamed from: y.h */
/* loaded from: classes.dex */
public final class C1820h {
/* renamed from: a */
public static int[] m294a(int[] iArr, int i, int i2) {
if (i + 1 > iArr.length) {
int[] iArr2 = new int[m292c(i)];
System.arraycopy(iArr, 0, iArr2, 0, i);
iArr = iArr2;
}
iArr[i] = i2;
return iArr;
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r0v4, types: [java.lang.Object[], java.lang.Object] */
/* renamed from: b */
public static <T> T[] m293b(T[] tArr, int i, T t) {
if (i + 1 > tArr.length) {
?? r0 = (Object[]) Array.newInstance(tArr.getClass().getComponentType(), m292c(i));
System.arraycopy(tArr, 0, r0, 0, i);
tArr = r0;
}
tArr[i] = t;
return tArr;
}
/* renamed from: c */
public static int m292c(int i) {
if (i <= 4) {
return 8;
}
return i * 2;
}
}