private Object throwIndex(int n) {
    if (n < 0) {
      throw new IndexOutOfBoundsException("n < 0");
    }

    throw new IndexOutOfBoundsException("n >= size()");
  }
Throws the appropriate exception for the given index value.

@param n the index value
@return never
@throws IndexOutOfBoundsException always thrown
android/android_framework/dex-maker/src/main/java/com/android/dx/util/FixedSizeList.java