|
|
@ -82,7 +82,8 @@ public class ArrayUtil {
|
|
|
|
return clone(array1);
|
|
|
|
return clone(array1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
final Class<?> type1 = array1.getClass().getComponentType();
|
|
|
|
final Class<?> type1 = array1.getClass().getComponentType();
|
|
|
|
@SuppressWarnings("unchecked") final T[] joinedArray = (T[]) Array.newInstance(type1, array1.length + array2.length);
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|
|
|
|
|
final T[] joinedArray = (T[]) Array.newInstance(type1, array1.length + array2.length);
|
|
|
|
System.arraycopy(array1, 0, joinedArray, 0, array1.length);
|
|
|
|
System.arraycopy(array1, 0, joinedArray, 0, array1.length);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
System.arraycopy(array2, 0, joinedArray, array1.length, array2.length);
|
|
|
|
System.arraycopy(array2, 0, joinedArray, array1.length, array2.length);
|
|
|
|