Skip to content

Commit 263e7f0

Browse files
committedNov 20, 2024·
Polishing
1 parent c10e233 commit 263e7f0

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed
 

‎spring-webflow/src/main/java/org/springframework/webflow/expression/spel/ActionPropertyAccessor.java

+2-10
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,8 @@ public Class<?>[] getSpecificTargetClasses() {
4848

4949
@Override
5050
public boolean canRead(EvaluationContext context, Object target, String name) {
51-
// Ensure the target is an Action.
52-
if (!(target instanceof Action)) {
53-
return false;
54-
}
55-
// Ensure the method adheres to the signature required by:
56-
// Action: execute(RequestContext)
57-
// or
58-
// MultiAction: <method name>(RequestContext)
59-
Method method = ReflectionUtils.findMethod(target.getClass(), name, RequestContext.class);
60-
return (method != null);
51+
return (target instanceof Action &&
52+
ReflectionUtils.findMethod(target.getClass(), name, RequestContext.class) != null);
6153
}
6254

6355
@Override

0 commit comments

Comments
 (0)
Please sign in to comment.