...
| Code Block | ||
|---|---|---|
| ||
try {
int i = 0;
while(true) {
a.doSomething();
a[i++].next();
}
} catch (ArrayIndexOutOfBoundsException e) {
// end of array, ongoing routine
}
|
...
| Code Block | ||
|---|---|---|
| ||
for (int i=0; i<a.length; i++) {
a[i].fdoSomething();
}
|
Noncompliant Code Example
...