File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
spring-webflow/src/main/java/org/springframework/webflow/expression/spel Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments