|
|
|
@ -117,6 +117,7 @@ public class ReflectiveMethodResolver implements MethodResolver { |
|
|
|
TypeConverter typeConverter = context.getTypeConverter(); |
|
|
|
TypeConverter typeConverter = context.getTypeConverter(); |
|
|
|
Class<?> type = (targetObject instanceof Class<?> clazz ? clazz : targetObject.getClass()); |
|
|
|
Class<?> type = (targetObject instanceof Class<?> clazz ? clazz : targetObject.getClass()); |
|
|
|
ArrayList<Method> methods = new ArrayList<>(getMethods(type, targetObject)); |
|
|
|
ArrayList<Method> methods = new ArrayList<>(getMethods(type, targetObject)); |
|
|
|
|
|
|
|
methods.removeIf(method -> !method.getName().equals(name)); |
|
|
|
|
|
|
|
|
|
|
|
// If a filter is registered for this type, call it
|
|
|
|
// If a filter is registered for this type, call it
|
|
|
|
MethodFilter filter = (this.filters != null ? this.filters.get(type) : null); |
|
|
|
MethodFilter filter = (this.filters != null ? this.filters.get(type) : null); |
|
|
|
@ -160,7 +161,6 @@ public class ReflectiveMethodResolver implements MethodResolver { |
|
|
|
boolean multipleOptions = false; |
|
|
|
boolean multipleOptions = false; |
|
|
|
|
|
|
|
|
|
|
|
for (Method method : methodsToIterate) { |
|
|
|
for (Method method : methodsToIterate) { |
|
|
|
if (method.getName().equals(name)) { |
|
|
|
|
|
|
|
int paramCount = method.getParameterCount(); |
|
|
|
int paramCount = method.getParameterCount(); |
|
|
|
List<TypeDescriptor> paramDescriptors = new ArrayList<>(paramCount); |
|
|
|
List<TypeDescriptor> paramDescriptors = new ArrayList<>(paramCount); |
|
|
|
for (int i = 0; i < paramCount; i++) { |
|
|
|
for (int i = 0; i < paramCount; i++) { |
|
|
|
@ -203,7 +203,6 @@ public class ReflectiveMethodResolver implements MethodResolver { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (closeMatch != null) { |
|
|
|
if (closeMatch != null) { |
|
|
|
return new ReflectiveMethodExecutor(closeMatch, type); |
|
|
|
return new ReflectiveMethodExecutor(closeMatch, type); |
|
|
|
} |
|
|
|
} |
|
|
|
|