This is an automated email from the ASF dual-hosted git repository. nfilotto pushed a commit to branch CAMEL-18730/fix-camel-report-maven-plugin-import-issue in repository https://gitbox.apache.org/repos/asf/camel.git
commit e3d3a93d5eb58321f674f17f2dad90f0d1f7b017 Author: Nicolas Filotto <nfilo...@talend.com> AuthorDate: Sat Nov 19 12:45:16 2022 +0100 CAMEL-18730: camel-report-maven-plugin - Fix import issue --- .../src/main/java/org/apache/camel/maven/RouteCoverageMojo.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/catalog/camel-report-maven-plugin/src/main/java/org/apache/camel/maven/RouteCoverageMojo.java b/catalog/camel-report-maven-plugin/src/main/java/org/apache/camel/maven/RouteCoverageMojo.java index 0392711bfb8..f64279bd1a8 100644 --- a/catalog/camel-report-maven-plugin/src/main/java/org/apache/camel/maven/RouteCoverageMojo.java +++ b/catalog/camel-report-maven-plugin/src/main/java/org/apache/camel/maven/RouteCoverageMojo.java @@ -47,7 +47,6 @@ import org.w3c.dom.Attr; import org.w3c.dom.Document; import org.w3c.dom.Element; -import edu.emory.mathcs.backport.java.util.Collections; import org.apache.camel.maven.model.RouteCoverageNode; import org.apache.camel.parser.RouteBuilderParser; import org.apache.camel.parser.XmlRouteParser; @@ -249,7 +248,7 @@ public class RouteCoverageMojo extends AbstractExecMojo { getLog().warn("No route coverage data found for route: " + routeId + ". Make sure to enable route coverage in your unit tests and assign unique route ids to your routes. Also remember to run unit tests first."); } else { - List<RouteCoverageNode> coverage = gatherRouteCoverageSummary(Collections.singletonList(t), coverageData); + List<RouteCoverageNode> coverage = gatherRouteCoverageSummary(List.of(t), coverageData); totalNumberOfNodes += coverage.size(); String out = templateCoverageData(fileName, routeId, coverage, notCovered, coveredNodes); getLog().info("Route coverage summary:\n\n" + out);