mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 01:22:33 -06:00
21 lines
522 B
Java
21 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;
|
||
|
}
|
||
|
}
|