diff --git a/spring-webflow/src/main/java/org/springframework/webflow/expression/spel/ActionPropertyAccessor.java b/spring-webflow/src/main/java/org/springframework/webflow/expression/spel/ActionPropertyAccessor.java index 7f16fa31..72a6f1f1 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/expression/spel/ActionPropertyAccessor.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/expression/spel/ActionPropertyAccessor.java @@ -48,16 +48,8 @@ public class ActionPropertyAccessor implements PropertyAccessor { @Override public boolean canRead(EvaluationContext context, Object target, String name) { - // Ensure the target is an Action. - if (!(target instanceof Action)) { - return false; - } - // Ensure the method adheres to the signature required by: - // Action: execute(RequestContext) - // or - // MultiAction: (RequestContext) - Method method = ReflectionUtils.findMethod(target.getClass(), name, RequestContext.class); - return (method != null); + return (target instanceof Action && + ReflectionUtils.findMethod(target.getClass(), name, RequestContext.class) != null); } @Override