You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by dh...@apache.org on 2014/06/10 21:51:43 UTC
[15/35] git commit: Added check to exclude static methods in proxies
Added check to exclude static methods in proxies
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e47e53c0
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e47e53c0
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e47e53c0
Branch: refs/heads/master
Commit: e47e53c013706f1adea1faa39c4c51886cab84a6
Parents: 99ccd37
Author: Dhiraj Bokde <dh...@yahoo.com>
Authored: Wed May 28 14:22:26 2014 -0700
Committer: Dhiraj Bokde <dh...@yahoo.com>
Committed: Tue Jun 10 12:48:31 2014 -0700
----------------------------------------------------------------------
.../apache/camel/maven/JavadocApiMethodGeneratorMojo.java | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/e47e53c0/tooling/maven/camel-component-util-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-component-util-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java b/tooling/maven/camel-component-util-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java
index b94aab7..fe8b5ac 100644
--- a/tooling/maven/camel-component-util-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java
+++ b/tooling/maven/camel-component-util-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java
@@ -134,7 +134,9 @@ public class JavadocApiMethodGeneratorMojo extends AbstractApiMethodGeneratorMoj
}
try {
final Method method = aClass.getMethod(name, argTypes);
- if ((method.getModifiers() & Modifier.PUBLIC) != 0) {
+ // only include non-static public methods
+ int modifiers = method.getModifiers();
+ if (Modifier.isPublic(modifiers) && !Modifier.isStatic(modifiers)) {
return method.getReturnType().getCanonicalName();
} else {
return null;
@@ -191,11 +193,6 @@ public class JavadocApiMethodGeneratorMojo extends AbstractApiMethodGeneratorMoj
}
@Override
- protected void endTag(boolean omitted) {
- super.endTag(omitted); //To change body of overridden methods use File | Settings | File Templates.
- }
-
- @Override
protected void handleEmptyTag(TagElement tag) {
if (parserState == ParserState.METHOD && HTML.Tag.CODE.equals(tag.getHTMLTag())) {
if (methodWithTypes != null) {