Rabbit-R1/switch port/java/sources/androidx/collection/ArraySetJvmUtil.java
2024-05-21 17:08:36 -04:00

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;
}
}