Skip to content

Commit a608c08

Browse files
committed
- r revert to older java API
1 parent aa97537 commit a608c08

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

approvaltests/src/main/java/org/approvaltests/reporters/EnvironmentVariableReporter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import org.lambda.functions.Function1;
1212

1313
import java.util.*;
14+
import java.util.stream.Collectors;
1415

1516
public class EnvironmentVariableReporter implements ApprovalFailureReporter
1617
{
@@ -50,7 +51,8 @@ public EnvironmentVariableReporter()
5051
}
5152
List<ApprovalFailureReporter> reporters = Arrays.stream(environmentValue.split(",")).distinct()
5253
.map(REPORTER_MAP::get).filter(Objects::nonNull)
53-
.map(reporterType -> (ApprovalFailureReporter) ClassUtils.create(reporterType)).toList();
54+
.map(reporterType -> (ApprovalFailureReporter) ClassUtils.create(reporterType))
55+
.collect(Collectors.toList());
5456
switch (reporters.size())
5557
{
5658
case 0 : {

0 commit comments

Comments
 (0)