Skip to content

Commit

Permalink
- r revert to older java API
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsEckart committed Aug 19, 2024
1 parent aa97537 commit a608c08
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.lambda.functions.Function1;

import java.util.*;
import java.util.stream.Collectors;

public class EnvironmentVariableReporter implements ApprovalFailureReporter
{
Expand Down Expand Up @@ -50,7 +51,8 @@ public EnvironmentVariableReporter()
}
List<ApprovalFailureReporter> reporters = Arrays.stream(environmentValue.split(",")).distinct()
.map(REPORTER_MAP::get).filter(Objects::nonNull)
.map(reporterType -> (ApprovalFailureReporter) ClassUtils.create(reporterType)).toList();
.map(reporterType -> (ApprovalFailureReporter) ClassUtils.create(reporterType))
.collect(Collectors.toList());
switch (reporters.size())
{
case 0 : {
Expand Down

0 comments on commit a608c08

Please sign in to comment.