Browse Source

Polishing

Issue: SPR-12502
(cherry picked from commit 26845f6)
pull/733/head
Juergen Hoeller 10 years ago
parent
commit
c9912f0d2d
  1. 10
      spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectiveMethodResolver.java

10
spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectiveMethodResolver.java

@ -95,10 +95,10 @@ public class ReflectiveMethodResolver implements MethodResolver { @@ -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 { @@ -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