You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/09/15 15:57:09 UTC

[camel] 20/22: CAMEL-15478: api-component should generate @ApiParam with more fine grained details so we know which parameter is for which api method.

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

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

commit 8a1014d963e395b7aadce079e60f12659ea09823
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Sep 15 16:30:35 2020 +0200

    CAMEL-15478: api-component should generate @ApiParam with more fine grained details so we know which parameter is for which api method.
---
 .../src/main/java/org/apache/camel/maven/JavaSourceParser.java      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavaSourceParser.java b/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavaSourceParser.java
index ec95b10..8268a56 100644
--- a/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavaSourceParser.java
+++ b/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavaSourceParser.java
@@ -168,9 +168,9 @@ public class JavaSourceParser {
                     // the old way with javadoc did not use varargs in the signature, so lets transform this to an array style
                     type = type + "[]";
                 }
-                if (type.startsWith("java.lang.")) {
-                    type = type.substring(10);
-                }
+
+                // remove all java.lang. prefixes
+                type = type.replaceAll("java.lang.", "");
 
                 sb.append(type);
                 sb.append(" ").append(name);