8023150: java/util/stream tests no longer compiling following JDK-8019401
Reviewed-by: alanb
This commit is contained in:
parent
4030ed819b
commit
3c90e54214
@ -609,7 +609,7 @@ public class TabulatorsTest extends OpTestCase {
|
||||
@Test(dataProvider = "StreamTestData<Integer>", dataProviderClass = StreamTestDataProvider.class)
|
||||
public void testComposeFinisher(String name, TestData.OfRef<Integer> data) throws ReflectiveOperationException {
|
||||
List<Integer> asList = exerciseTerminalOps(data, s -> s.collect(toList()));
|
||||
List<Integer> asImmutableList = exerciseTerminalOps(data, s -> s.collect(collectingAndThen(toList(), Collections::unmodifiableList)));
|
||||
List<Integer> asImmutableList = exerciseTerminalOps(data, s -> s.collect(collectingAndThen(toList(), Collections::<Integer>unmodifiableList)));
|
||||
assertEquals(asList, asImmutableList);
|
||||
try {
|
||||
asImmutableList.add(0);
|
||||
|
Loading…
Reference in New Issue
Block a user