File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
approvaltests/src/main/java/org/approvaltests/reporters Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1111import org .lambda .functions .Function1 ;
1212
1313import java .util .*;
14+ import java .util .stream .Collectors ;
1415
1516public 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 : {
You can’t perform that action at this time.
0 commit comments