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