j'ai retrouvé le code en question. Je pense qu'il n'y a pas besoin de s'y connaître en Java pour admirer ce code génial qui a donnée des mois de travail à Oracle selon leur avocats :
private static void rangeCheck(int arrayLen, int fromIndex, int toIndex) {
if (fromIndex > toIndex)
throw new IllegalArgumentException("fromIndex(" + fromIndex +
") > toIndex(" + toIndex+")");
if (fromIndex < 0)
throw new ArrayIndexOutOfBoundsException(fromIndex);
if (toIndex > arrayLen)
throw new ArrayIndexOutOfBoundsException(toIndex);
}
}