Skip to content

Commit

Permalink
Removed foreach argument type
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Chen committed Dec 16, 2015
1 parent 23ace37 commit 8addf75
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import com.google.common.base.Optional;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import com.google.common.collect.Ordering;
import org.junit.Assert;
import org.junit.Test;

Expand Down Expand Up @@ -440,9 +439,9 @@ public void testPairFlatMap() {
*/
public static <T extends Comparable<T>> void assertOrderInvariantEquals(
List<List<T>> expected, List<List<T>> actual) {
expected.forEach((List<T> list) -> Collections.sort(list));
expected.forEach(list -> Collections.sort(list));
List<List<T>> sortedActual = new ArrayList<>();
actual.forEach((List<T> list) -> {
actual.forEach(list -> {
List<T> sortedList = new ArrayList<>(list);
Collections.sort(sortedList);
sortedActual.add(sortedList);
Expand Down

0 comments on commit 8addf75

Please sign in to comment.