mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 00:22:50 -06:00
20 lines
522 B
Java
20 lines
522 B
Java
package androidx.collection;
|
|
|
|
import java.lang.reflect.Array;
|
|
|
|
/* loaded from: classes.dex */
|
|
class ArraySetJvmUtil {
|
|
private ArraySetJvmUtil() {
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static <T> T[] resizeForToArray(T[] tArr, int i) {
|
|
if (tArr.length < i) {
|
|
return (T[]) ((Object[]) Array.newInstance(tArr.getClass().getComponentType(), i));
|
|
}
|
|
if (tArr.length > i) {
|
|
tArr[i] = null;
|
|
}
|
|
return tArr;
|
|
}
|
|
}
|