Issue: SPR-12502
master
Juergen Hoeller 10 years ago
parent 1cefeb2af0
commit 26845f6f7f
  1. 10
      spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectiveMethodResolver.java

@ -95,10 +95,10 @@ public class ReflectiveMethodResolver implements MethodResolver {
/**
* Locate a method on a type. There are three kinds of match that might occur:
* <ol>
* <li>An exact match where the types of the arguments match the types of the constructor
* <li>An in-exact match where the types we are looking for are subtypes of those defined on the constructor
* <li>A match where we are able to convert the arguments into those expected by the constructor,
* according to the registered type converter.
* <li>an exact match where the types of the arguments match the types of the constructor
* <li>an in-exact match where the types we are looking for are subtypes of those defined on the constructor
* <li>a match where we are able to convert the arguments into those expected by the constructor,
* according to the registered type converter
* </ol>
*/
@Override
@ -108,7 +108,7 @@ public class ReflectiveMethodResolver implements MethodResolver {
try {
TypeConverter typeConverter = context.getTypeConverter();
Class<?> type = (targetObject instanceof Class ? (Class<?>) targetObject : targetObject.getClass());
List<Method> methods = new ArrayList<Method>((getMethods(type, targetObject)));
List<Method> methods = new ArrayList<Method>(getMethods(type, targetObject));
// If a filter is registered for this type, call it
MethodFilter filter = (this.filters != null ? this.filters.get(type) : null);

Loading…
Cancel
Save