You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2025/02/01 10:18:06 UTC
(camel) 02/06: (chores) camel-bean: removed unused return
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 0a9c6f4486c05374536383ac9122efe469ebf89d
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jan 31 11:53:05 2025 +0100
(chores) camel-bean: removed unused return
---
.../main/java/org/apache/camel/component/bean/BeanInfo.java | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
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 2d831de3617..ce6d50fa282 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
@@ -359,11 +359,10 @@ public class BeanInfo {
/**
* Introspects the given method
*
- * @param clazz the class
- * @param method the method
- * @return the method info, is newer <tt>null</tt>
+ * @param clazz the class
+ * @param method the method
*/
- private MethodInfo introspect(Class<?> clazz, Method method) {
+ private void introspect(Class<?> clazz, Method method) {
LOG.trace("Introspecting class: {}, method: {}", clazz, method);
String opName = method.getName();
@@ -374,7 +373,7 @@ public class BeanInfo {
if (existingMethodInfo != null) {
LOG.trace("This method is already overridden in a subclass, so the method from the sub class is preferred: {}",
existingMethodInfo);
- return existingMethodInfo;
+ return;
}
LOG.trace("Adding operation: {} for method: {}", opName, methodInfo);
@@ -405,7 +404,6 @@ public class BeanInfo {
// must add to method map last otherwise we break stuff
methodMap.put(method, methodInfo);
- return methodInfo;
}
/**