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

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 70c12079c936bb24db84b8082a39fdade02be925
Author: Guillaume Nodet <[email protected]>
AuthorDate: Thu Jun 11 09:51:42 2020 +0200

    Avoid warnings during fhir generation caused by zero-width space in the 
javadoc
---
 .../java/org/apache/camel/maven/AbstractApiMethodGeneratorMojo.java  | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/AbstractApiMethodGeneratorMojo.java
 
b/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/AbstractApiMethodGeneratorMojo.java
index a043d2d..e18a4e7 100644
--- 
a/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/AbstractApiMethodGeneratorMojo.java
+++ 
b/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/AbstractApiMethodGeneratorMojo.java
@@ -330,6 +330,11 @@ public abstract class AbstractApiMethodGeneratorMojo 
extends AbstractApiMethodBa
             int i = 0;
             for (String argType : argTypes) {
 
+                // javadoc sometimes contains zero-width spaces
+                if (argType.charAt(0) == '\u200b') {
+                    argType = argType.substring(1);
+                }
+
                 // try loading as is first
                 try {
                     
parameterizedType.append(getCanonicalName(getProjectClassLoader().loadClass(argType)));

Reply via email to