Add and fix Checkstyle ParenPad
This commit is contained in:
parent
0dfce09f26
commit
a8a0bba75e
|
@ -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. ");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue