You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2022/11/21 08:27:03 UTC

[camel] branch CAMEL-18730/fix-camel-report-maven-plugin-import-issue-3.18 created (now 3f516d91c85)

This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a change to branch CAMEL-18730/fix-camel-report-maven-plugin-import-issue-3.18
in repository https://gitbox.apache.org/repos/asf/camel.git


      at 3f516d91c85 CAMEL-18730: camel-report-maven-plugin - Fix import issue

This branch includes the following new commits:

     new 3f516d91c85 CAMEL-18730: camel-report-maven-plugin - Fix import issue

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel] 01/01: CAMEL-18730: camel-report-maven-plugin - Fix import issue

Posted by nf...@apache.org.
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-3.18
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 3f516d91c85136e4e00deeb1486a82ead25c5049
Author: Nicolas Filotto <nf...@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 c65d0efcb3e..48e04caba73 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;
@@ -250,7 +249,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);