code: public static <T> T[] copyOf(final T[] original, final int newLength) {
          if (newLength == original.length) {
              return original.clone();
          }
  
          return (T[]) copyOf(original, newLength, original.getClass());
      }
docs: @see Arrays#copyOf(Object[], int)
  
  @param original
  @param newLength
  @return