Update api component generation util to handle inner classes

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/b13c88f7
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b13c88f7
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b13c88f7

Branch: refs/heads/master
Commit: b13c88f7c386711f014fe13ac9e71b2d86cf5f87
Parents: b80b119
Author: Jonathan Anstey <jans...@gmail.com>
Authored: Thu Jul 3 13:58:22 2014 -0230
Committer: Jonathan Anstey <jans...@gmail.com>
Committed: Mon Sep 8 09:06:08 2014 -0230

----------------------------------------------------------------------
 .../org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b13c88f7/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java
----------------------------------------------------------------------
diff --git 
a/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java
 
b/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java
index 6484692..b43adf6 100644
--- 
a/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java
+++ 
b/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java
@@ -84,7 +84,7 @@ public class JavadocApiMethodGeneratorMojo extends 
AbstractApiMethodGeneratorMoj
              aClass = aClass.getSuperclass()) {
 
             log.debug("Processing " + aClass.getName());
-            final String javaDocPath = aClass.getName().replaceAll("\\.", "/") 
+ ".html";
+            final String javaDocPath = aClass.getName().replaceAll("\\.", 
"/").replace('$', '.') + ".html";
 
             // read javadoc html text for class
             InputStream inputStream = null;
@@ -169,7 +169,7 @@ public class JavadocApiMethodGeneratorMojo extends 
AbstractApiMethodGeneratorMoj
             final Method method = aClass.getMethod(name, argTypes);
             int modifiers = method.getModifiers();
             if (!Modifier.isStatic(modifiers) || 
Boolean.TRUE.equals(includeStaticMethods)) {
-                result = method.getReturnType().getCanonicalName();
+                result = method.getReturnType().getName();
             }
         } catch (NoSuchMethodException e) {
             // could be a non-public method

Reply via email to