19 lines
519 B
Java
19 lines
519 B
Java
|
package o;
|
||
|
|
||
|
import java.lang.reflect.Array;
|
||
|
import java.util.Arrays;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class FXU {
|
||
|
@SafeVarargs
|
||
|
public static <E> E[] e(int i, E... eArr) {
|
||
|
try {
|
||
|
return (E[]) Arrays.copyOf(eArr, i);
|
||
|
} catch (NoSuchMethodError unused) {
|
||
|
E[] eArr2 = (E[]) ((Object[]) Array.newInstance(eArr.getClass().getComponentType(), i));
|
||
|
System.arraycopy(eArr, 0, eArr2, 0, Math.min(i, eArr.length));
|
||
|
return eArr2;
|
||
|
}
|
||
|
}
|
||
|
}
|