Add and fix Checkstyle ParenPad

This commit is contained in:
Gary Gregory 2024-10-03 17:38:44 -04:00
parent 0dfce09f26
commit a8a0bba75e
7 changed files with 14 additions and 20 deletions

View File

@ -107,16 +107,10 @@ public class ArrayIterator<E> implements ResettableIterator<E> {
*/
protected void checkBound(final int bound, final int len, final String type) {
if (bound > len) {
throw new ArrayIndexOutOfBoundsException(
"Attempt to make an ArrayIterator that " + type +
"s beyond the end of the array. "
);
throw new ArrayIndexOutOfBoundsException("Attempt to make an ArrayIterator that " + type + "s beyond the end of the array. ");
}
if (bound < 0) {
throw new ArrayIndexOutOfBoundsException(
"Attempt to make an ArrayIterator that " + type +
"s before the start of the array. "
);
throw new ArrayIndexOutOfBoundsException("Attempt to make an ArrayIterator that " + type + "s before the start of the array. ");
}
}