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/19 11:46:04 UTC

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

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


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

This branch includes the following new commits:

     new e3d3a93d5eb 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
in repository https://gitbox.apache.org/repos/asf/camel.git

commit e3d3a93d5eb58321f674f17f2dad90f0d1f7b017
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 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);