Index: build/android/incremental_install/java/org/chromium/incrementalinstall/Reflect.java |
diff --git a/build/android/incremental_install/java/org/chromium/incrementalinstall/Reflect.java b/build/android/incremental_install/java/org/chromium/incrementalinstall/Reflect.java |
index 7790690aac69a68ebbc67072d3e67a0f8100d3e4..c64dc1e8a313a86604983b98b287826c0ad0e6a6 100644 |
--- a/build/android/incremental_install/java/org/chromium/incrementalinstall/Reflect.java |
+++ b/build/android/incremental_install/java/org/chromium/incrementalinstall/Reflect.java |
@@ -46,9 +46,9 @@ final class Reflect { |
* Concatenates two arrays into a new array. The arrays must be of the same |
* type. |
*/ |
- static Object[] concatArrays(Object[] left, Object[] right) { |
+ static Object[] concatArrays(Object[] arrType, Object[] left, Object[] right) { |
Object[] result = (Object[]) Array.newInstance( |
- left.getClass().getComponentType(), left.length + right.length); |
+ arrType.getClass().getComponentType(), left.length + right.length); |
System.arraycopy(left, 0, result, 0, left.length); |
System.arraycopy(right, 0, result, left.length, right.length); |
return result; |