Skip to content

Commit

Permalink
Add a comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpovirk committed Oct 10, 2022
1 parent e767bcc commit 65684f6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ public ErrorReportingRunner(Throwable cause, Class<?>... testClasses) {
@Override
public Description getDescription() {
Description description = Description.createSuiteDescription(classNames);
/*
* Use an indexed loop instead of a foreach: That avoids declaring a variable that some
* tools will see as "unused."
*/
for (int i = 0; i < causes.size(); i++) {
description.addChild(describeCause());
}
Expand Down

0 comments on commit 65684f6

Please sign in to comment.