docs: private static CharArrayList wrap(final char a[], final int length) {
          if (length > a.length)
              throw new IllegalArgumentException("The specified length (" + length + ") is greater than the array size (" + a.length + ")");
          final CharArrayList l = new CharArrayList(a, false);
          l.size = length;
          return l;
      }