From c9912f0d2d00133b68b6eeb9621463d27cf42f57 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Tue, 30 Dec 2014 10:04:16 +0100 Subject: [PATCH] Polishing Issue: SPR-12502 (cherry picked from commit 26845f6) --- .../spel/support/ReflectiveMethodResolver.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectiveMethodResolver.java b/spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectiveMethodResolver.java index fd29aff636b..7b415aa0988 100644 --- a/spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectiveMethodResolver.java +++ b/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: *
    - *
  1. An exact match where the types of the arguments match the types of the constructor - *
  2. An in-exact match where the types we are looking for are subtypes of those defined on the constructor - *
  3. A match where we are able to convert the arguments into those expected by the constructor, - * according to the registered type converter. + *
  4. an exact match where the types of the arguments match the types of the constructor + *
  5. an in-exact match where the types we are looking for are subtypes of those defined on the constructor + *
  6. a match where we are able to convert the arguments into those expected by the constructor, + * according to the registered type converter *
*/ @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 methods = new ArrayList((getMethods(type, targetObject))); + List methods = new ArrayList(getMethods(type, targetObject)); // If a filter is registered for this type, call it MethodFilter filter = (this.filters != null ? this.filters.get(type) : null);