You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2016/04/29 08:40:29 UTC
struts git commit: Cleans up method name
Repository: struts
Updated Branches:
refs/heads/support-2-3 deefeffd1 -> 76eb8f38a
Cleans up method name
Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/76eb8f38
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/76eb8f38
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/76eb8f38
Branch: refs/heads/support-2-3
Commit: 76eb8f38a33ad0f1f48464ee1311559c8d52dd6d
Parents: deefeff
Author: Lukasz Lenart <lu...@apache.org>
Authored: Fri Apr 29 08:40:03 2016 +0200
Committer: Lukasz Lenart <lu...@apache.org>
Committed: Fri Apr 29 08:40:03 2016 +0200
----------------------------------------------------------------------
.../src/main/java/org/apache/struts2/rest/RestActionMapper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/struts/blob/76eb8f38/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java
----------------------------------------------------------------------
diff --git a/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java b/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java
index 12cc9d0..41029ea 100644
--- a/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java
+++ b/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java
@@ -311,7 +311,7 @@ public class RestActionMapper extends DefaultActionMapper {
mapping.setName(actionName);
if (allowDynamicMethodCalls) {
- mapping.setMethod(actionMethod);
+ mapping.setMethod(cleanupActionName(actionMethod));
} else {
mapping.setMethod(null);
}