Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#FFCCCC
try {
    int i = 0;
    while(true) {
         a.doSomething();
         a[i++].next();
    }
} catch (ArrayIndexOutOfBoundsException e) {
    // end of array, ongoing routine
}

...

Code Block
bgColor#ccccff
for (int i=0; i<a.length; i++) {
    a[i].fdoSomething();
}

Noncompliant Code Example

...