Skip to content

Commit 84de100

Browse files
committed
Polishing
1 parent beab8ab commit 84de100

File tree

5 files changed

+1270
-1261
lines changed

5 files changed

+1270
-1261
lines changed

spring-expression/src/main/java/org/springframework/expression/MethodResolver.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,8 +22,8 @@
2222
import org.springframework.lang.Nullable;
2323

2424
/**
25-
* A method resolver attempts locate a method and returns a command executor that can be
26-
* used to invoke that method. The command executor will be cached but if it 'goes stale'
25+
* A method resolver attempts to locate a method and returns a command executor that can be
26+
* used to invoke that method. The command executor will be cached, but if it 'goes stale'
2727
* the resolvers will be called again.
2828
*
2929
* @author Andy Clement

spring-expression/src/main/java/org/springframework/expression/spel/ast/MethodReference.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ private MethodExecutor findAccessorForMethod(List<TypeDescriptor> argumentTypes,
200200
EvaluationContext evaluationContext) throws SpelEvaluationException {
201201

202202
AccessException accessException = null;
203-
List<MethodResolver> methodResolvers = evaluationContext.getMethodResolvers();
204-
for (MethodResolver methodResolver : methodResolvers) {
203+
for (MethodResolver methodResolver : evaluationContext.getMethodResolvers()) {
205204
try {
206205
MethodExecutor methodExecutor = methodResolver.resolve(
207206
evaluationContext, targetObject, this.name, argumentTypes);

0 commit comments

Comments
 (0)