GWT safe version of Arrays.copyOf.
(T[] original, int newLength)
| 118 | |
| 119 | |
| 120 | static <T> T[] arraysCopyOf(T[] original, int newLength) { |
| 121 | T[] copy = newArray(original, newLength); |
| 122 | System.arraycopy(original, 0, copy, 0, Math.min(original.length, newLength)); |
| 123 | return copy; |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * Returns an array containing all of the elements in the specified |
no test coverage detected