Skip to content

Commit

Permalink
Change a use of Iterable.forEach, which isn't available under Desugar.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=260986815
  • Loading branch information
cpovirk authored and cgdecker committed Aug 5, 2019
1 parent 508696a commit a3c9f2c
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -185,8 +185,9 @@ public final Ordered expect(Iterable<?> elements) {
return new Ordered() {
@Override
public void inOrder() {
resultsForAllStrategies.forEach(
resultsForStrategy -> assertEqualInOrder(elements, resultsForStrategy));
for (List<E> resultsForStrategy : resultsForAllStrategies) {
assertEqualInOrder(elements, resultsForStrategy);
}
}
};
}
Expand Down

0 comments on commit a3c9f2c

Please sign in to comment.