This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 4ae80338c1fdcdd105dd2bcf39616c8d6e3981ae Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Mon Jun 24 15:27:21 2019 +0200 Optimise camel-bean to not lookup method annotations on java.lang.Object superclass --- .../src/main/java/org/apache/camel/component/bean/BeanInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-bean/src/main/java/org/apache/camel/component/bean/BeanInfo.java b/components/camel-bean/src/main/java/org/apache/camel/component/bean/BeanInfo.java index 00d0c6e..4bbcf3e 100644 --- a/components/camel-bean/src/main/java/org/apache/camel/component/bean/BeanInfo.java +++ b/components/camel-bean/src/main/java/org/apache/camel/component/bean/BeanInfo.java @@ -500,7 +500,7 @@ public class BeanInfo { for (Class<?> i : c.getInterfaces()) { collectParameterAnnotations(i, m, a); } - if (!c.isInterface() && c.getSuperclass() != null) { + if (!c.isInterface() && c.getSuperclass() != null && c.getSuperclass() != Object.class) { collectParameterAnnotations(c.getSuperclass(), m, a); } }