mirror of
https://github.com/apache/commons-collections.git
synced 2025-03-01 22:39:08 +00:00
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) {
|
protected void checkBound(final int bound, final int len, final String type) {
|
||||||
if (bound > len) {
|
if (bound > len) {
|
||||||
throw new ArrayIndexOutOfBoundsException(
|
throw new ArrayIndexOutOfBoundsException("Attempt to make an ArrayIterator that " + type + "s beyond the end of the array. ");
|
||||||
"Attempt to make an ArrayIterator that " + type +
|
|
||||||
"s beyond the end of the array. "
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
if (bound < 0) {
|
if (bound < 0) {
|
||||||
throw new ArrayIndexOutOfBoundsException(
|
throw new ArrayIndexOutOfBoundsException("Attempt to make an ArrayIterator that " + type + "s before the start of the array. ");
|
||||||
"Attempt to make an ArrayIterator that " + type +
|
|
||||||
"s before the start of the array. "
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user