Skip to content

Commit c9912f0

Browse files
committed
Polishing
Issue: SPR-12502 (cherry picked from commit 26845f6)
1 parent 8e14a5d commit c9912f0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ public void registerMethodFilter(Class<?> type, MethodFilter filter) {
9595
/**
9696
* Locate a method on a type. There are three kinds of match that might occur:
9797
* <ol>
98-
* <li>An exact match where the types of the arguments match the types of the constructor
99-
* <li>An in-exact match where the types we are looking for are subtypes of those defined on the constructor
100-
* <li>A match where we are able to convert the arguments into those expected by the constructor,
101-
* according to the registered type converter.
98+
* <li>an exact match where the types of the arguments match the types of the constructor
99+
* <li>an in-exact match where the types we are looking for are subtypes of those defined on the constructor
100+
* <li>a match where we are able to convert the arguments into those expected by the constructor,
101+
* according to the registered type converter
102102
* </ol>
103103
*/
104104
@Override
@@ -108,7 +108,7 @@ public MethodExecutor resolve(EvaluationContext context, Object targetObject, St
108108
try {
109109
TypeConverter typeConverter = context.getTypeConverter();
110110
Class<?> type = (targetObject instanceof Class ? (Class<?>) targetObject : targetObject.getClass());
111-
List<Method> methods = new ArrayList<Method>((getMethods(type, targetObject)));
111+
List<Method> methods = new ArrayList<Method>(getMethods(type, targetObject));
112112

113113
// If a filter is registered for this type, call it
114114
MethodFilter filter = (this.filters != null ? this.filters.get(type) : null);

0 commit comments

Comments
 (0)