Rabbit-R1/android (non root)/java/sources/androidx/collection/ArraySetJvmUtil.java

21 lines
522 B
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
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;
}
}