Skip to content

Commit 1aa731e

Browse files
committed
Fix remaining allMin/allMax test type inference failures
1 parent d4e10eb commit 1aa731e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

mug/src/test/java/com/google/mu/util/stream/MoreCollectorsTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public void testCombining_eight() {
307307
}
308308

309309
@Test public void testAllMax_empty() {
310-
assertThat(Stream.<Integer>empty().collect(allMax(naturalOrder(), toImmutableList())))
310+
assertThat(Stream.<Integer>empty().collect(allMax(Comparator.<Integer>naturalOrder(), toImmutableList())))
311311
.isEmpty();
312312
}
313313

@@ -318,12 +318,13 @@ public void testCombining_eight() {
318318
}
319319

320320
@Test public void testAllMax_multiple() {
321-
assertThat(Stream.of(1, 1, 2, 1, 2).collect(allMax(naturalOrder(), toImmutableList())))
321+
assertThat(Stream.of(1, 1, 2, 1, 2).collect(allMax(Comparator.<Integer>naturalOrder(), toImmutableList())))
322322
.containsExactly(2, 2);
323323
}
324324

325325
@Test public void testAllMin_empty() {
326-
assertThat(Stream.<String>empty().collect(MoreCollectors.allMin(naturalOrder(), toImmutableSet())))
326+
assertThat(Stream.<String>empty().collect(
327+
MoreCollectors.allMin(Comparator.<String>naturalOrder(), toImmutableSet())))
327328
.isEmpty();
328329
}
329330

@@ -334,7 +335,7 @@ public void testCombining_eight() {
334335
}
335336

336337
@Test public void testAllMin_multiple() {
337-
assertThat(Stream.of(1, 1, 2, 1, 2).collect(allMin(naturalOrder(), toImmutableList())))
338+
assertThat(Stream.of(1, 1, 2, 1, 2).collect(allMin(Comparator.<Integer>naturalOrder(), toImmutableList())))
338339
.containsExactly(1, 1, 1);
339340
}
340341

0 commit comments

Comments
 (0)